Joshua F Posted January 3, 2010 Share Posted January 3, 2010 Hello, I am having a problem. I have a script I have that uses php to get MySQL database and put it on the website. It is a table, and I have it so in the files it should have a link to the "profile" of the item. It works fine on Safari and FireFox, has the links, but on Internet Explorer it has the Item name, but it is just a text, no link on it. If you need a Screen Shot or the link to the site, just ask. Thanks, Josh Quote Link to comment Share on other sites More sharing options...
Birdmansplace Posted January 3, 2010 Share Posted January 3, 2010 how about posting the code for the rest of us to see. make sure to use the code tags when you post it. Quote Link to comment Share on other sites More sharing options...
Joshua F Posted January 3, 2010 Author Share Posted January 3, 2010 Okay, Here would be my whole code. <?php include'config.php';?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>MagicPkz - Item Prices</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <link rel="stylesheet" type="text/css" href="styles.css" /> </head> <body> <div class="container"> <div class="header"> <div class="sitename">MagicPkz</div> </div> <?php require_once("navagation.php") ?> <b><font color="#FFFFFF" size="1" face="Arial, Helvetica, sans-serif"><br /><br /><center>Note: This does <b>NOT</b> fully work with I.E <b>YET</b>.</center></font></b> <b><font size="2" face="Arial, Helvetica, sans-serif"><center><a href="all.php">View All Items</a></center></font></b> <!--Start of Main--> <table class="tables" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#000000" id="resultTable"> <b><font size="3" face="Arial, Helvetica, sans-serif"><br /><br /><center>Item List</center></font></b> <thead> <tr bordercolor="hh.png" bgcolor="#000000"> <th width="33%" class="tablef"><div align="center"><b><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Item Name</font></b></div></th> <th width="30%" class="tablef"><div align="center"><b><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Item ID</font></b></div></th> <th width="11%" class="tablef"><div align="center"><b><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Premium Member?</font></b></div></th> </tr> </thead> <?php if ($list_q = mysql_query("SELECT * FROM grandex ORDER BY name asc")) { if (mysql_num_rows($list_q)) { while($list_b=mysql_fetch_array($list_q)) { ?> <tbody> <tr class="tablee"> <td width="33%"><font size="2" face="Arial, Helvetica, sans-serif"><center><b<a href="view.php?t=&id=<?=$list_b['id'];?>"><?=$list_b['name'];?></a></b></font></td></center> <td width="30%"><font size="2" face="Arial, Helvetica, sans-serif"><center><?=$list_b['itemid'];?></center></font></td> <td width="11%"><font size="2" face="Arial, Helvetica, sans-serif"><center> <? if($list_b['prem'] == 1) { echo '<strong><font color="#008000">Yes</font></strong>'; }else{ echo '<strong><font color="#FF0000">No</font></strong>'; } ?></font></td></center> </tr> </tbody> <?php } } else { echo "<center><b>No Items In Database.<br>Please Check Back Later.</b></center>"; } } else { trigger_error(mysql_error()); } ?> <!--End of Main--> </div> </div> <? require_once('ads.php') ?> </body> </html> Quote Link to comment Share on other sites More sharing options...
Birdmansplace Posted January 3, 2010 Share Posted January 3, 2010 well one thing i did see is you didnt close the <b> in : <td width="33%"><font size="2" face="Arial, Helvetica, sans-serif"><center>[b][u][i]<b[/i][/u][/b]<a href="view.php?t=&id=<?=$list_b['id'];?>"><?=$list_b['name'];?></a></b></font></td></center> Not sure what to tell you, hopefully someone else has some input. I know that buttons dont seam to work in ie. On a side note you could clean up the code a little with a stylesheet.css Css basics is easy once you get the hang of it. Quote Link to comment Share on other sites More sharing options...
Joshua F Posted January 3, 2010 Author Share Posted January 3, 2010 All right, thanks for the suggestion. I'll try to clean it up later . Also thanks for the find. Edit: That actually fixed it.. Thanks for the help . Quote Link to comment Share on other sites More sharing options...
Buddski Posted January 3, 2010 Share Posted January 3, 2010 What version of IE are you using? IE 8 is very picky when it comes to markup.. I think if you fix your <b> tag it will probably work.. Also try to avoid using font tags as it is depreciated.. and bad code practice.. 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.