PDA

View Full Version : Works AWSOME IN IE but sucks in Firefox?


RawliJr
07-12-2006, 06:05 PM
<center>
<?
$file=basename($PHP_SELF);$ext = strrchr($file,'.');
include("html$ext");

$check=$time-360;
$on=fetch("SELECT COUNT(*) FROM $table[punk] WHERE online>$check;");
$on=round($on*1.5);
?>
<html>
<head>
<title>Thugkillin</title>
<link href="css/pw_default.css" type="text/css" rel="stylesheet">
</head>
<body>
<table width=100% height=100%>
<tr>
<td align=center valign=middle>
<table width=773 height=375 align=center>
<tr>
<table width=100% height=100%>
<tr>
<td valign=top>
<center><img src="/images/THUGKILLIN.jpg" border="0" width="444" /></a>
<br>
<font size=1>Thugkillin is a on-line multi-player browser base game were you take the role of a pimp on a quest for money, power and respect.<br> You must learn the ways of pimp, get your hoes workin the corners, and commanding your thugs to defend your forever growing empire.</br> Punks here are rough and its not easy pimp'n hoes.</br> So if you think your up for alittle smack, bring some of yo friends, then <a href=draft<?=$ext?>>register</a>.<br></font>
</td>
</tr>
<tr>
<td>
<form method=post action=login_go<?=$ext?>>
<table width=100% height=100%>
<tr>
<td>
<table width=300 border=0 cellpadding=0 cellspacing=0>
<tr align=center valign=top bgcolor=242845>
<td><b>Thugkillin:</b>Top Ten</td>
</tr>
<tr align=center valign=top>
<td>
<table height=150 width=300 bgcolor=242845 border=0 cellspacing=1 cellpadding=1>
<?
$getranks = mysql_query("SELECT id,nick,networth,nrank,crew FROM punk WHERE rank>0 ORDER BY nrank ASC LIMIT 10;");
if(fetch("SELECT COUNT(id) FROM punk WHERE nrank>0;") >= 10)
{
while ($rank = mysql_fetch_array($getranks))
{
$crw = mysql_fetch_array(mysql_query("SELECT icon FROM $table[crew] WHERE id='$rank[4]';"));
?>
<tr id=mainranks>
<td width=1><font id=ranksfont><?=$rank[3]?>.</td>
<td><font id=ranksfont><nobr><?if($crw[0]){echo"<img src=$crw[0] width=14 height=14 align=center>";}?><?=$rank[1]?> (#<?=$rank[0]?>)</nobr></td>
<td align=right><font id=ranksfont>$<?=commas($rank[2])?></td>
</tr>
<?}
}else{?>
<tr><td align=center bgcolor=3B4162>Top 10 punks currently unavailable.</td></tr>
<?}?>
</table>
</td>
</tr>
</table>

<table width=300 bgcolor=242845>
<tr>
<td align=center>Username:</td><td align=center><input id=entry maxlength=12 size=15 type=text name=username></td>
</tr>
<td align=center>Password:</td><td align=center><input id=entry maxlength=12 size=15 type=password name=password></td>
</tr>
</tr>
<td align=center><font size=1><a href=getpass<?=$ext?>>Lost password?</a></font></td><td align=center><input type=submit id=button value="LOGIN"></td>
</tr>
</table>
</form>
</td>
<td valign=top>
<br>
<br>
<font size=1><b>Pimpin:</b> <font id=thefont><?=fetch("SELECT COUNT(nick) FROM punk WHERE id>0 AND status!=1;")?></font> punks signed up and playing!</font>
<br>
<font size=1><b>Online:</b> <font id=thefont><?=$on?></font> punks are online and slappin hoes.</font>
<br>
<font size=1><b>Frozen:</b> <font id=thefont><?=fetch("SELECT COUNT(nick) FROM punk WHERE id>0 AND status=1;")?></font> punks frozen for cheating.</font>
<br>
<font size=1><b>Speed:</b> <font id=thefont>4</font> turns every <font id=thefont>10</font> minutes. <font id=thefont>1000</font> accumulated.</font>
<br>
<font size=1><b>Turn Addon:</b> You may only buy max of <font id=thefont>5500</font> turns.</font>
<br>
<font size=1><b>Started:</b> <font id=thefont>July 11th</font></font>
<br>
<font size=1><b>Ends:</b> <font id=thefont>August 11th</font></font>
<br>
<br>
<b><font size=3>New to Thugkillin? <a href=draft<?=$ext?>>Signup now</a>!</b>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br><font size=1>&copy; Copyrighted 2006 Thugkillin. All Rights Reserved.</font>
</td>
</tr>
</table>
</body>
</html>

how come the login shows in ie and doesnt in FF...and works fine in opera too?why is that?:confused:

cheers
rawli

TheShaner
07-12-2006, 06:13 PM
I haven't looked at your code, but you're missing something here about browsers and server-side languages.

Browsers do not EVER see PHP or any other server-side language. If it "works" in one browser and not the other, then that means the browsers are interpretting THE SAME source code that has been returned by the server AFTER processing the PHP DIFFERENTLY.

So I would look at your source code and see what's being returned. Most likely IE and Opera are ignoring a lone character or tag that was accidentally produced from your PHP code, while Fx is seeing it and thus refusing to show anything below it or associated with it. All browsers will have the same source code if you view it. It's just how they're interpretting it that is the problem, thus not a PHP issue (unless your PHP is what's causing you to print some bad HTML and CSS).

-Shane

RawliJr
07-12-2006, 06:38 PM
ok so u say if i just clean it up it might work?
ill try that

cheers
rawli

RawliJr
07-12-2006, 07:23 PM
i got it:D

fci
07-12-2006, 07:47 PM
he was ultimately saying that your question would have better suited in this forum http://www.codingforums.com/forumdisplay.php?f=13

RawliJr
07-12-2006, 07:55 PM
i posted it there?, and there were 2 different questions,this one i fixed...and the other on is in HTML/CSS

Spookster
07-12-2006, 09:24 PM
In the future if your thread is in the wrong forum we will move it for you. Don't just create a new thread in the right one because that is considered crossposting.

Closing thread..