Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: parse error, unexpected ';', expecting ')' in /home/


Charene

Recommended Posts

Hi, Please help me with the following error on my site:

Parse error: parse error, unexpected ';', expecting ')' in /home/giftsinc/public_html/includes/boxes/7000 Gifts.php on line 26

 

I'm trying to create a new box for 7000 gifts, but must have done something wrong...

 

My 7000 Gifts.php file reads like this:

 

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION4);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<p align="center"><a href="http://www.promogifts.co.za/giftsinc/" target="_blank"><img src="http://www.giftsinc.co.za/promogift.JPG" width="150" height="32" border="0"></a></p>' .

 

 

new infoBox($info_box_contents)'

?>

</td>

</tr>

<!-- information_eof //-->

 

 

 

I know this might sound extremely stupid, but where can I find the line numbers of the different php files? I'm opening them from my Cpanel, and do not know how to count the lines correctly???

 

Thanks!

Charene

Charene

Link to comment
Share on other sites

Try this

 

<?php
/*
$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright ? 2003 osCommerce

Released under the GNU General Public License
*/
?>
<!-- information //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION4);

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents = array();
$info_box_contents[] = array('text' => '<p align="center"><a href="http://www.promogifts.co.za/giftsinc/" target="_blank"><img src="http://www.giftsinc.co.za/promogift.JPG" width="150" height="32" border="0"></a></p>');


new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- information_eof //-->

 

For counting lines and other cool features, try PHP Designer. It's free and will raise your PHP IQ by 20 points, just by downloading it...meaning, it sheds light on new things you wouldn't normally notice. I haven't used the 2006 version, but 2005 is good and I'm sure the new one is too.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...