Guest Posted August 11, 2005 Posted August 11, 2005 I am trying to edit my main page and keep getting this error: Parse error: parse error, unexpected T_STRING in /usr/home/myfert/public_html/includes/languages/english/index.php on line 46 This is what the php for it looks like: <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<table width="145" border="1" align="right" bordercolor="#FF9999" bgcolor="#FFFFFF"> <tr> <td bordercolor="#FFFFFF" bgcolor="#FF9999"> <div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Basal Body Fertility Monitors:</strong></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF"> <div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://my-fertility-monitor.com/index.php?cPath=24"><img src="images/sophia_small.jpg" alt="Petit Sophia Basal Monitor" width="100" height="100" border="0"></a><br> <strong><a href="http://my-fertility-monitor.com/index.php?cPath=24">The Petit Sophia</a></strong></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF" bgcolor="#FF9999"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font color="#FFFFFF" size="1"><strong>Urine Fertility Monitors:</strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="1"><a href="http://my-fertility-monitor.com/index.php?cPath=21"><img src="images/clearblue_fertility_monitor_small.gif" alt="ClearBlue Fertility Monitor" width="100" height="100" border="0"></a><br> <strong><a href="http://my-fertility-monitor.com/index.php?cPath=21">The ClearBlue Fertility Monitor</a></strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF" bgcolor="#FF9999"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font color="#FFFFFF" size="1"><strong>Saliva Fertility Monitors:</strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="1"><a href="http://my-fertility-monitor.com/index.php?cPath=22"><img src="images/ovacue.jpg" alt="Ovacue Fertility Monitor" width="100" height="100" border="0"></a><br> <strong><a href="http://my-fertility-monitor.com/index.php?cPath=22">The Ovacue Fertility Monitor</a></strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF" bgcolor="#FF9999"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font color="#FFFFFF" size="1"><strong>Skin Fertility Monitors: </strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF"><div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="1"><a href="http://my-fertility-monitor.com/index.php?cPath=23"><img src="images/fov_small.jpg" alt="Fertile-Ov Fertility Monitor" width="100" height="100" border="0"></a><br> <strong><a href="http://my-fertility-monitor.com/index.php?cPath=23">Fertile-Ov Fertility Monitor</a></strong></font></font></div></td> </tr> </table><p><font color="#FF9999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><br><b>We welcome you, and hope that you'll find the information you need here in selecting the right fertility monitor.</b></font></p> <h2><strong><font color="#9999FF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Why do we love the Ovacue Fertility Monitor?</font><font face="Verdana, Arial, Helvetica, sans-serif"><font size="2"><img src="images/products_small/ovacue.jpg" alt="Ovacue Fertility Monitor" width="100" height="100" align="right"></font></font></strong></h2> <p><font color="#FF9999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Answer:</strong></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> Because it is easy to use. Needs no refill items and can be used long term with no additional products. With use of the additional Vaginal Sensor you can actually confirm that you have ovulated! </font></p> <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Again, please feel free to call us at 888-303-9100 if we can help answer any questions for you, and help guide you to the right product.<p><font color="#9999FF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Helping you conceive is what we are all about!</strong></font></p></td>'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Welcome to My Fertility Monitor'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> If anyone could help me, I'd greatly appreciate it! Thanks.
WiseWombat Posted August 11, 2005 Posted August 11, 2005 I am trying to edit my main page and keep getting this error: Parse error: parse error, unexpected T_STRING in /usr/home/myfert/public_html/includes/languages/english/index.php on line 46 This is what the php for it looks like: <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<table width="145" border="1" align="right" bordercolor="#FF9999" bgcolor="#FFFFFF"> <tr> <td bordercolor="#FFFFFF" bgcolor="#FF9999"> <div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Basal Body Fertility Monitors:</strong></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF"> <div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://my-fertility-monitor.com/index.php?cPath=24"><img src="images/sophia_small.jpg" alt="Petit Sophia Basal Monitor" width="100" height="100" border="0"></a><br> <strong><a href="http://my-fertility-monitor.com/index.php?cPath=24">The Petit Sophia</a></strong></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF" bgcolor="#FF9999"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font color="#FFFFFF" size="1"><strong>Urine Fertility Monitors:</strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="1"><a href="http://my-fertility-monitor.com/index.php?cPath=21"><img src="images/clearblue_fertility_monitor_small.gif" alt="ClearBlue Fertility Monitor" width="100" height="100" border="0"></a><br> <strong><a href="http://my-fertility-monitor.com/index.php?cPath=21">The ClearBlue Fertility Monitor</a></strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF" bgcolor="#FF9999"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font color="#FFFFFF" size="1"><strong>Saliva Fertility Monitors:</strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="1"><a href="http://my-fertility-monitor.com/index.php?cPath=22"><img src="images/ovacue.jpg" alt="Ovacue Fertility Monitor" width="100" height="100" border="0"></a><br> <strong><a href="http://my-fertility-monitor.com/index.php?cPath=22">The Ovacue Fertility Monitor</a></strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF" bgcolor="#FF9999"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font color="#FFFFFF" size="1"><strong>Skin Fertility Monitors: </strong></font></font></div></td> </tr> <tr> <td bordercolor="#FFFFFF"><div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="1"><a href="http://my-fertility-monitor.com/index.php?cPath=23"><img src="images/fov_small.jpg" alt="Fertile-Ov Fertility Monitor" width="100" height="100" border="0"></a><br> <strong><a href="http://my-fertility-monitor.com/index.php?cPath=23">Fertile-Ov Fertility Monitor</a></strong></font></font></div></td> </tr> </table><p><font color="#FF9999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><br><b>We welcome you, and hope that you'll find the information you need here in selecting the right fertility monitor.</b></font></p> <h2><strong><font color="#9999FF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Why do we love the Ovacue Fertility Monitor?</font><font face="Verdana, Arial, Helvetica, sans-serif"><font size="2"><img src="images/products_small/ovacue.jpg" alt="Ovacue Fertility Monitor" width="100" height="100" align="right"></font></font></strong></h2> <p><font color="#FF9999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Answer:</strong></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> Because it is easy to use. Needs no refill items and can be used long term with no additional products. With use of the additional Vaginal Sensor you can actually confirm that you have ovulated! </font></p> <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Again, please feel free to call us at 888-303-9100 if we can help answer any questions for you, and help guide you to the right product.<p><font color="#9999FF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Helping you conceive is what we are all about!</strong></font></p></td>'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Welcome to My Fertility Monitor'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> If anyone could help me, I'd greatly appreciate it! Thanks. <{POST_SNAPBACK}> </table><p><font color="#FF9999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><br><b>We welcome you, and hope that you'll find the information you need here in selecting the right fertility monitor.</b></font></p> Im not shore but maybe it might need line 46 needs to be like this . </table><p><font color="#FF9999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><br><b>We welcome you, and hope that you\'ll find the information you need here in selecting the right fertility monitor.</b></font></p> ( WARNING ) I think I know what Im talking about. BACK UP BACK UP BACK UP BACK UP
♥Vger Posted August 11, 2005 Posted August 11, 2005 Download a good (free) plain text editor like Text Pad, and once you've installed it go to Options and turn on Line Numbering (if it's not already turned on). This will be a big help to you in tracking down errors when working with osCommerce. Also read the 'Parse Error?' link below my name to see what probably caused the error. Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.