Charene Posted August 6, 2006 Share Posted August 6, 2006 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 More sharing options...
MR1 Posted August 6, 2006 Share Posted August 6, 2006 Hi, one thing which i can help you is that how to count your lines, Id recomend downloading http://www.topshareware.com/PHP-Edit-transfer-9881.htm when downloaded, put your code der, on the left hand side, you should see numbers, those are the numbers which will tell you what line you are on, or you can use Microsoft Frontpage, Link to comment Share on other sites More sharing options...
choosealogin Posted August 6, 2006 Share Posted August 6, 2006 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 More sharing options...
Charene Posted August 6, 2006 Author Share Posted August 6, 2006 thanks, i will try this... Charene Link to comment Share on other sites More sharing options...
Charene Posted August 6, 2006 Author Share Posted August 6, 2006 Mark, thanks for helping out! Works fine now... Charene Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.