|
||||
error.. kat mana ni??
ini koding file tuhh.. aku kopi pes tu sbb tak bleh detect error dia.. kita buat sama2 ye adik2... hehe
-------------------------------------------------------------- <?php //hello_world Component// /** * Content code * @package hello_world * @Copyright (C) 2004 Doyle Lewis * @ All rights reserved * @ hello_world is Free Software * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html * @version 1.0 **/ // ensure this file is being included by a parent file defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); require_once($mosConfig_absolute_path."/administrator/components/com_hello_world/class.hello_world.php"); class HTML_hello_world { function edit( $option, &$row ) { ?> <script language="javascript" type="text/javascript"> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == "cancel") { submitform( pressbutton ); return; } submitform( pressbutton ); } </script> <form action="index2.php" method="post" name="adminForm" id="adminForm" class="adminForm"> <table border="0" cellpadding="3" cellspacing="0"> <tr> <td>Text Output: </td> <td><input type="text" size="50" maxsize="100" name="text" value="<?php echo $row->text; ?>" /></td> </tr> </table> <input type="hidden" name="id" value="<?php echo $row->id; ?>" /> <input type="hidden" name="option" value="<?php echo $option; ?>" /> <input type="hidden" name="task" value="" /> </form> <?php } ?> <?php // aku try and error letak <?php ni kat line ni tapi still result d //same error function showText( $option, &$rows ) { //line 45.. sblm letak <?php tu ?> <script language="javascript" type="text/javascript"> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == "cancel") { submitform( pressbutton ); return; } submitform( pressbutton ); } </script> <form action="index2.php" method="post" name="adminForm"> <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> <tr> <th width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);" /></th> <th class="title" width="25%">Text Output</th> <th width="25%">Published</th> </tr> <?php $k = 0; for($i=0; $i < count( $rows ); $i++) { $row = $rows[$i]; ?> <tr class="<?php echo "row$k"; ?>"> <td><input type="checkbox" id="cb<?php echo $i;?>" name="id[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);" /></td> <td><a href="#edit" onclick="return listItemTask('cb<?php echo $i;?>','edit')"><?php echo $row->text; ?></a></td> <td align="center"> <?php if ($row->published == "1") { echo "<img src="images/tick.png" border="0" />"; } else { echo "<img src="images/publish_x.png" border="0" />"; } ?> </td> <?php $k = 1 - $k; ?> </tr> <?php } ?> <input type="hidden" name="option" value="<?php echo $option; ?>" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> </form> <?php } } ?> ------------------------------------------------------------------- ini error dia Parse error: syntax error, unexpected ';', expecting T_FUNCTION in c:\wamp\www\mambo\administrator\components\com_hel lo_world\admin.hello_world.html.php on line 45
__________________
To follow the path: Look to the master, Follow the master, Walk with the master, See through the master, Become the master. |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Internal Server Error - ASP error | ladyheart2612 | Website Programming | 0 | 21-07-2005 09:22 AM |
| lot of error | prozone | Website Programming | 2 | 19-07-2005 02:39 PM |
| mcm mana nak tau server mana suport WAP | xhensem | Website Design | 4 | 11-06-2004 06:13 PM |
| Help-error | hyllda | Website Programming | 18 | 21-10-2003 12:32 PM |
| fatal error | joyce | Website Programming | 2 | 24-06-2002 02:43 PM |
All times are GMT +8. The time now is 01:01 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.










Linear Mode

