soldier81 Posted March 2, 2006 Share Posted March 2, 2006 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> Quote Link to comment Share on other sites More sharing options...
willpower Posted March 2, 2006 Share Posted March 2, 2006 How are you connecting to your DB?You do not show the code which accesses $row["id"]; Will Quote Link to comment Share on other sites More sharing options...
soldier81 Posted March 2, 2006 Author Share Posted March 2, 2006 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> Quote Link to comment Share on other sites More sharing options...
shocker-z Posted March 2, 2006 Share Posted March 2, 2006 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 Quote Link to comment Share on other sites More sharing options...
soldier81 Posted March 2, 2006 Author Share Posted March 2, 2006 is there any diff in that code and the second one i posted if so its made no change and i cant seem to spot the difference 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.