unidox Posted August 25, 2007 Share Posted August 25, 2007 I have this code: <tr height='10' width='100%'> <td width='30%'><b>" . getContent($mysql[news_topic]) . "</b></td> <td width='30%'>" . getContent($mysql[news_author]) . "</td> <td width='20%'>" . $mysql[topic_date] . "</td> <td width='20%' align='right'> <a href=\"" . $_SERVER['PHP_SELF'] . "?page=admin_news&m=3&id=" . $mysql[$id_type] . "\"><img height='14' width='14' border='0' alt='' src='images/ad_edit.gif'></a> <a href=\"" . $_SERVER['PHP_SELF'] . "?page=admin_news&m=5&id=" . $mysql[$id_type] . "\"><img height='14' width='14' border='0' alt='' src='images/ad_delete.gif'></a></td> </tr> I can see the images fine in IE, but when I use FF, the images never show. How can I fix this? Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 25, 2007 Share Posted August 25, 2007 Do you have Firefox set to not show images? I don't see a problem with the code. Quote Link to comment Share on other sites More sharing options...
unidox Posted August 25, 2007 Author Share Posted August 25, 2007 No images show fine. Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 25, 2007 Share Posted August 25, 2007 What do you see when you view the source of the page? As in, right click in your browser & view source - not the PHP file. Quote Link to comment Share on other sites More sharing options...
unidox Posted August 25, 2007 Author Share Posted August 25, 2007 I get: <tr height='10' width='100%'> <td width='30%'><b>News 2</b></td> <td width='30%'>SAPPER</td> <td width='20%'>06/24/2007</td> <td width='20%' align='right'> <a href="/index.php?page=admin_news&m=3&id=50"><img height='14' width='14' border='0' alt='' src='images/ad_edit.gif'></a> <a href="/index.php?page=admin_news&m=5&id=50"><img height='14' width='14' border='0' alt='' src='images/ad_delete.gif'></a></td> </tr> Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 25, 2007 Share Posted August 25, 2007 Should it be /images/ad_edit.gif instead of just images/ad_edit.gif Try using a full URL instead of a relative one. *shrug* sorry if I can't help, that's the only thing I can think of. Quote Link to comment Share on other sites More sharing options...
unidox Posted August 25, 2007 Author Share Posted August 25, 2007 I tried, i looked at the source of the page, and this is what it came out with... <tr width="100%" height="10"> <td width="30%">Test</td> <td width="30%">asd</td> <td width="20%">asd</td> <td align="right" width="20%"><a href="/index.php?page=admin_demos&m=3&id=4"><img alt="0" style="display: none;" src="images/ad_edit.gif" border="0"></a> <a href="/index.php?page=admin_demos&m=5&id=4"><img style="display: none;" alt="0" src="images/ad_delete.gif" border="0"></a></td> </tr> Could it be the style? I looked in all my files and I didnt find anything that had no display... Quote Link to comment Share on other sites More sharing options...
pkSML Posted August 25, 2007 Share Posted August 25, 2007 <img height='14' width='14' border='0' alt='' src='images/ad_delete.gif'> This image won't show? Jesirose is right: the problem is your path. The source (src) should be an absolute path (that starts with http://) or a relative path (which will start with a period or a slash). Your image begins with neither of those. 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.