Jump to content

link to db prob


soldier81

Recommended Posts


this is part of a rollover script im using on my site it works wen the target is just another php page but fails wen it has to call on the database any ideas where i went wrong

<td width="7%" bgcolor="#<?php echo "$bgcolor" ?>"><a href="profile.
<php?fileId=<?php echo $row["id"]; ?>"><onMouseOver="hiLite('k','k2','Your Comment Here')"
onMouseOut="hiLite('k','k1','')"><img name="k" src="images/k1.png" img border="0px"></td>
Link to comment
Share on other sites

wen the code is like this it connects to the db no prob but i want to insert a rollover imgage and the way i went about that was the way i done it on my other buttons but the other buttons dont request the db

<--connects to db no probs-->
<tr>
<td width="7%" bgcolor="#<?php echo "$bgcolor" ?>"><a href="profile.php?fileId=<?php echo $row["id"]; ?>"><img border="0" title="View Profile" src="images/theme/<?php echo "$theme_col" ?>/k1.png"</a></td>

<--connects to db but rollover has stopped working-->

<td width="7%" bgcolor="#<?php echo "$bgcolor" ?>"><a href="profile.php?fileId=<?php echo $row["id"]; ?>"><onMouseOver="hiLite('k','k2','Your Comment Here')" onMouseOut="hiLite('k','k1','')"><img name="k" src="images/k1.png" img border="0px"></td>
Link to comment
Share on other sites

try using

<td width="7%" bgcolor="#<?php echo "$bgcolor" ?>"><a href="profile.php?fileId=<?php echo $row['id']; ?>"><onMouseOver="hiLite('k','k2','Your Comment Here')"
onMouseOut="hiLite('k','k1','')"><img name="k" src="images/k1.png" img border="0px"></td>


Think u had you PHP tags messed up a bit.


Edit: sorry i'm at work and a bit slow! lol
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.