Jump to content

[SOLVED] Cant find parse error


Lassie

Recommended Posts

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

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

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>";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.