ladymoodyblu Posted March 4, 2007 Share Posted March 4, 2007 I copied exactly straight from the last post,what you guys showed me. Saved it to my product_info.php then check my site & got these: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/encha4/public_html/product_info.php on line 109 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/encha4/public_html/product_info.php on line 109 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/encha4/public_html/product_info.php on line 109 Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/encha4/public_html/product_info.php on line 10 so ,i go back to the info.php and those \\\ backslashes wher GONE!!!!! Its like its got some kind of buggy problem somewhere. i do have the se crazy nnnnnn's that show up in my products catagories .are these related problems? Link to comment Share on other sites More sharing options...
Guest Posted March 4, 2007 Share Posted March 4, 2007 Here is how that entire code should look from around line 109 to 126 <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> </table> <?php } ?> Link to comment Share on other sites More sharing options...
jasonabc Posted March 4, 2007 Share Posted March 4, 2007 Saved it to my product_info.php then check my site Are you using OSC's File Manager to save & edit your files? Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Velveeta Posted March 4, 2007 Share Posted March 4, 2007 Are you using OSC's File Manager to save & edit your files? That's what it sounds like, because I remember that thing would never escape apostrophes and quotation marks by default unless you went in to fix it... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.