i am echoing some tables everything worked but then i wanted to add rollover buttons instead of plain buttons to make it look cooler, but when you have a javascript function that uses double and single quotes thats inside a bigger quote it gets confusing...i commented out the the quotes that would interupt the echo "" quotes like this \" but it still doesnt work. Anyways this is the code:
my problem lies here:PHP Code:<?php
$result = mysql_query("SELECT image, ID FROM portfolio_interactive");
while($row = mysql_fetch_assoc($result))
{
echo "<table width='432' border='0' cellpadding='0' cellspacing='0' background='image_back.gif'>
<tr>
<td height='25'> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><div align='right'><img src='port_images/".$row["image"]."' width='75' height='75' /></div></td>
<td><a href='delete-inter.php?id=".$row["ID"]."&page=admin.php' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image1','','remove_over.gif',1)\"><img src='remove_up.gif' name='Image1' width='121' height='43' border='0' id='Image1' /></a></td>
<td> </td>
</tr>
<tr>
<td height='25'> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>";
}
?>
PHP Code:"
<a href='delete-inter.php?id=".$row["ID"]."&page=admin.php' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image1','','remove_over.gif',1)\"><img src='remove_up.gif' name='Image1' width='121' height='43' border='0' id='Image1' />"







Bookmarks