Lassie Posted August 15, 2008 Share Posted August 15, 2008 I have an image link with a js call to show a tootip. I have a parse error onhe first line. Can anyone help please? <td class="p1"><a href="<?php echo('show_book.php?product_id={$row['product_id']}');?>> <img src=<?php echo './images/{$row['pix']}';?> border="0" width="80" height="100">onmouseover="ajax_showTooltip('demo-pages/js-calendar.html',this);return false" onmouseout="ajax_hideTooltip()"</a>" Link to comment https://forums.phpfreaks.com/topic/119866-solved-cant-find-parse-error/ Share on other sites More sharing options...
kenrbnsn Posted August 15, 2008 Share Posted August 15, 2008 Check your quotes very carefully. This doesn't have any parse error, but it might not be what you want: <td class="p1"><a href="<?php echo "show_book.php?product_id={$row['product_id']}";?>"> <img src="<?php echo "./images/{$row['pix']}";?>" border="0" width="80" height="100"> onmouseover="ajax_showTooltip('demo-pages/js-calendar.html',this);return false" onmouseout="ajax_hideTooltip()"</a>" Ken Link to comment https://forums.phpfreaks.com/topic/119866-solved-cant-find-parse-error/#findComment-617499 Share on other sites More sharing options...
Lassie Posted August 15, 2008 Author Share Posted August 15, 2008 Thanks. I tried the following and it worked.So i now have 2 solutions. how do i post as solved? echo "<a href=\"show_book.php?product_id={$row['product_id']}\" onmouseover=\"ajax_showTooltip('demo-pages/js-calendar.html',this);return false\" onmouseout=\"ajax_hideTooltip()\"> <img src= './images/{$row['pix']}' border='0' width='100' height='80' /></a>"; Link to comment https://forums.phpfreaks.com/topic/119866-solved-cant-find-parse-error/#findComment-617506 Share on other sites More sharing options...
kenrbnsn Posted August 15, 2008 Share Posted August 15, 2008 Click on the "TOPIC SOLVED" button at the bottom left portion of the screen just above the "Quick Reply" area. Ken Link to comment https://forums.phpfreaks.com/topic/119866-solved-cant-find-parse-error/#findComment-617509 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.