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

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.