jacko_162 Posted February 16, 2011 Share Posted February 16, 2011 I am coding a PHP / API based website for eve online game. I have it all worked out apart from cross browser crap. www[DOT]shiplotto[DOT]com wont view correctly in internet explorer but it works in firefox and the built ingmae browser. can anyone help me fix it, spent days trying all sorts; <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="middle"> </td> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <? $queryInvClass = mysql_query("SELECT groupName FROM ships WHERE typeName='$iname';") or die(mysql_error()); $invClass = mysql_fetch_assoc($queryInvClass); $queryDescription = mysql_query("SELECT description FROM ships WHERE typeName='$iname';") or die(mysql_error()); $invDescription = mysql_fetch_assoc($queryDescription); //Create the auction picture $queryInvTypeID = mysql_query("SELECT typeID FROM ships WHERE typeName='$iname';") or die(mysql_error()); $invTypeID = mysql_fetch_assoc($queryInvTypeID); ?> <table width="100%" border="0" cellspacing="5" cellpadding="5"> <tr> <td align="left" valign="top" colspan="2"><?php echo "<span class='shipName'>".$iname."</span><br />"; echo "Value: <span class='isk'>".number_format($marketPrice[marketPrice], 2, '.', ',')." ISK</span><br /><br />"; ?></td> </tr> <tr> <td align="left" width="150"><img src="images/types/shiptypes_png/128_128/<?php echo $invTypeID[typeID]; ?>.png" align="middle" /></td> <td align="left" valign="top"><?php //While loop to create auction info. echo "<span class='normalbold'>Ticket Price:</span> <span class='credits'>".number_format($ticketPrice[ticketPrice], 2, '.', ',')." ISK</span><br />"; echo "<span class='normalbold'>Info:</span> <span class='normal'>".$invDescription[description]." </span><br />"; ?></td> </tr> </table> </td> </tr> </table> <table width="800" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <? if($half<=$tickeRow){ ?> <tr> <? //echo "IF"; //While loop to create half of the buttons if ticket is not sold else list ticket owners name. $tt=1; while($tt<=$half){ $queryTopTicket = mysql_query("SELECT * FROM promoTickets WHERE promoID='$promoID'&&ticketNumber='$tt';") or die(mysql_error()); $topTicketName = mysql_fetch_assoc($queryTopTicket); if(!empty($topTicketName[username])){ ?> <td width="20%"><? echo $tt.") <span class='nameyellow'>".$topTicketName[username];?></span></td> <? } else { ?> <form action="buy_ticket2.php" method="post"> <input type="hidden" name="ticketNumber" value="<? echo($tt); ?>" /> <input type="hidden" name="promoID" value="<? echo $promoID; ?>" /> <input type="hidden" name="ticketPrice" value="<? echo $ticketPrice[ticketPrice]; ?>" /> <td width="25%"><input type="submit" value="Buy Ticket <? echo $tt; ?>" class="btn"> </form> </td> <? } $tt++; } ?> </tr> <? } else{ //echo "ELSE"; $tRow = 17; //echo $tRow; $tCount = 0; while($tCount < $tRow){ ?> <tr> <? //While loop to create half of the buttons if ticket is not sold else list ticket owners name. $tt=1; while($tt<=$tickeRow){ $queryBotTicket = mysql_query("SELECT * FROM promoTickets WHERE promoID='$promoID'&&ticketNumber='$tnum';") or die(mysql_error()); $botTicketName = mysql_fetch_assoc($queryBotTicket); if(!empty($botTicketName[username])){ ?> <td width="20%"><? echo $tnum.") <span class='nameyellow'>".$botTicketName[username]; ?></span></td> <? } else { ?> <form action="buy_ticket2.php" method="post"> <input type="hidden" name="ticketNumber" value="<? echo($tnum); ?>" /> <input type="hidden" name="promoID" value="<? echo $promoID; ?>" /> <input type="hidden" name="ticketPrice" value="<? echo $ticketPrice[ticketPrice]; ?>" /> <td width="25%"><input type="submit" value="Buy Ticket <? echo($tnum); ?>" class="btn"> </form> </td> <? } $tt++; $tnum++; } ?> </tr> <? $tCount++; } } ?> </table> </td> </tr> <tr> <td> <td> </tr> <tr> <td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <? if($half<=$tickeRow){ ?> <tr> <? //echo "IF"; //While loop to create half of the buttons if ticket is not sold else list ticket owners name. $tb=$half+1; while($tb<=$numberTickets[numberOfTickets]){ $queryBotTicket = mysql_query("SELECT * FROM promoTickets WHERE promoID='$promoID'&&ticketNumber='$tb';") or die(mysql_error()); $botTicketName = mysql_fetch_assoc($queryBotTicket); if(!empty($botTicketName[username])){ ?> <td width="20%"><? echo $tb.") <span class='nameyellow'>".$botTicketName[username]; ?></span></td> <? } else { ?> <form action="buy_ticket2.php" method="post"> <input type="hidden" name="ticketNumber" value="<? echo($tb); ?>" /> <input type="hidden" name="promoID" value="<? echo $promoID; ?>" /> <input type="hidden" name="ticketPrice" value="<? echo $ticketPrice[ticketPrice]; ?>" /> <td width="25%"><input type="submit" value="Buy Ticket <? echo($tb); ?>" class="btn"> </form> </td> <? } $tb++; } ?> </tr> <? } else{ //echo "ELSE"; $tRow = (($numberTickets[numberOfTickets]/6)/2); //echo $tRow; $tCount = 0; while($tCount < $tRow){ ?> <tr> <? //While loop to create half of the buttons if ticket is not sold else list ticket owners name. $tb=1; while($tb<=$tickeRow){ $queryBotTicket = mysql_query("SELECT * FROM promoTickets WHERE promoID='$promoID'&&ticketNumber='$tnum';") or die(mysql_error()); $botTicketName = mysql_fetch_assoc($queryBotTicket); if(!empty($botTicketName[username])){ ?> <td width="20%"><? echo $tnum.") <span class='nameyellow'>".$botTicketName[username]; ?></span></td> <? } else { ?> <form action="buy_ticket2.php" method="post"> <input type="hidden" name="ticketNumber" value="<? echo($tnum); ?>" /> <input type="hidden" name="promoID" value="<? echo $promoID; ?>" /> <input type="hidden" name="ticketPrice" value="<? echo $ticketPrice[ticketPrice]; ?>" /> <td width="25%"><input type="submit" value="Buy Ticket <? echo($tnum); ?>" class="btn"> </form> </td> <? } $tb++; $tnum++; } ?> </tr> <? $tCount++; } } ?> </table> </td> </tr> </table> </td> </tr> <tr> <td> <? echo "<br />"; ?> </td> </tr> </table> <? $s++; } ?> Its bugging me to hell.. Quote Link to comment Share on other sites More sharing options...
moa Posted February 18, 2011 Share Posted February 18, 2011 My advice is to follow these three steps : 1) Do you using any style sheet with it ? If yes make sure that that sytlesheet is compatible with the IE browsers. 2) Do you using any JavaScript with it ? If yes work on its behavior with IE 3) If you dont find any problem in it then post here your actual problem. We all gonna help you 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.