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>" Quote Link to comment 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 Quote Link to comment 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>"; Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.