Jump to content

Recommended Posts

Hello,

I am new to your board just found it from Google. I have been fixing issues with my mmorpg for sometime and have been perplexed by an issue. It seems I have alot of problems with FireFox. My players are telling me that my scripts are not working properly in FireFox. So as a last resort I am posting here. I would greatly appreciate any help you may be able to provide!My code is posted below. The problem-The turns are reducing by 2 in FireFox and 1 in Internet Explorer. I am unable to pinpoint why Fire Fox has an issue with this script.

 

<?php
include "globals.php";

if($ir['hospital'])
{
print "While in hospital you can't Search the streets.<br /><a href='hospital.php'>> Back</a>";
$h->endpage();
exit;
}
else if($ir['jail'])
{
print "While in jail you can't Search the streets.<br /><a href='jail.php'>> Back</a>";
$h->endpage();
exit;
}

print "<h3>You are currently searching the streets</h3>";
if ($_GET['action'] != 'scavenge') {
$turns=$ir['turns'];
//print "<br><br><form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge><input type='text' name='steps' value='{$ir['turns']}'><br /><input type=submit value='scavenge'></form>";
print "<form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge><input type=submit value='Continue'></form>";
print "You have {$turns} turns left.<br>";
} else {
$steps=1; 
for($i=0;$i<$steps;$i++) 
{
if ($ir['turns'] < 1)  
{ 
print("You do NOT have enough steps to search the streets any more. Come back at newday.<br /><br />"); 
}else { 
//this is the random for case chance selection
$chance = rand(1,15); 
$db->query("UPDATE users SET turns=turns-1 where userid=$userid",$c); 
//this is the first chance and so on by the case # 
if ($chance == 1)  
{
// this random amount equals the money gained from, too
  $amnt=rand(100,500); 
  if($ir['money'] > $amnt) 
   { 
print "As you search the streets you see a bum; he asks you for \$$amnt and you tell him to get lost. Then he proceeds to smack you. He takes the  \$$amnt anyway.<br /><br />"; 
$db->query("UPDATE users SET money=money- {$amnt } where userid=$userid",$c); 
$ir['money']-=$amnt; 
   } 
  else 
   {
   //this will remove all money from you hand
    print "As you walk the streets you see a bum he asks you for \$1 you tell him to get lost he smacks you over the head and looks in your wallet. Finding it almost empty he just runs off with it.<br /><br />"; 
    $db->query("UPDATE users SET money=0 where userid=$userid",$c); 
    $ir['money']=0; 
   } 
} 
if ($chance == 2)  { 
print "Nothing here.<br /><br />"; 
} 
if ($chance == 3)  { 
$gained=rand(20,70)*$ir['level']; 
print "You found a bag on the side walk you open it up and find <b> \$$gained</b> was inside.<br /><br />"; 
$db->query("UPDATE users SET money=money+$gained where userid=$userid",$c); 
} 
if ($chance == 7)  { 
print "You see a guy getting mugged, but you decide to keep walking. You don't want to be in his shoes anytime soon.<br /><br />"; 
} 
if ($chance == 4)  { 
print "While exploring the streets you found some cash, but a hobo came quickly behind you and whacked you over the head. You lurch in suprise and the hobo takes the cash and runs off."; 
}
if ($chance == 5)  { 
$gain = rand(10,105); 
print "While searching the streets you found <b>$gain</b> crystals."; 
$db->query("UPDATE users SET crystals=crystals+$gain where userid=$userid",$c); 
}  
if ($chance == 6)  { 
$gain = rand(10,100)*(floor($ir['level']/2)+1); 
print "While searching the streets you found <b> \$$gain</b>.<br /><br />"; 
$db->query("update users set money=money+$gain where userid=$userid",$c); 
} 
if ($chance ==   { 
print "Nothing here.<br /><br />"; 
}
$inv=$db->query("SELECT * FROM inventory WHERE inv_userid=$userid AND inv_itemid=8",$c); print"<br /><br />";
if ($chance == 9)  { 
print "You see a small item on the ground, and decide to pick it up... wonder what it is? (Hint, look in your inventory)"; 
$itemidexplore = 8;
	if ($db->num_rows($inv) == 1)
{
$db->query("UPDATE inventory SET inv_qty=inv_qty+1 WHERE inv_userid=$userid AND inv_itemid=8",$c); print"<br /><br />"; 
}
else
{
$db->query("INSERT INTO inventory   VALUES('',$itemidexplore,$userid,1)",$c); print"<br /><br />"; 
}
}
$inv2=$db->query("SELECT * FROM inventory WHERE inv_userid=$userid AND inv_itemid=10",$c); print"<br /><br />"; 
if ($chance == 10)  { 
print "You see a syringe on the ground, and decide to pick it up. Looks deadly enough..."; 
$itemidexplore = 10;
	if ($db->num_rows($inv2) == 1)
{
$db->query("UPDATE inventory SET inv_qty=inv_qty+1 WHERE inv_userid=$userid AND inv_itemid=10",$c); print"<br /><br />"; 
}
else
{
      $db->query("INSERT INTO inventory   VALUES('',$itemidexplore,$userid,1)",$c); print"<br /><br />"; 
} 
print"<br /><br />"; 
} 
if ($chance == 11)  { 
print "Nothing here.<br /><br />"; 
} 
if ($chance == 12)  { 
print "Nothing here.<br /><br />"; 
} 
if ($chance == 13)  { 
$expcur=(($ir['exp']+$ir['exp_needed'])/100); 
$exp=(($expcur)*rand(1,5)); 
print "You got in a scuffle with a bum, and WON you gained some EXP!!<br /><br />"; 
$db->query("UPDATE users SET exp=exp+$exp WHERE userid=$userid",$c); 
} 
if ($chance == 14)  { 
print "Nothing here.<br /><br />"; 
} 
if ($chance == 15)  { 
$hosptime=(int) rand(1,5); 
$loseruser = $ir['userid']; 
$reasonhosp = 'You fall into a man hole while searching.'; 
$db->query("UPDATE users SET hospital=$hosptime WHERE userid=$loseruser",$c); 
$db->query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c); 
event_add($ir['userid'],"You fell in a man hole. Do be a bit more careful next time...",$c); 
die ("You fell in a man hole. <br /><b>Good news</b>: You aren't dead<br /><b>Bad News</b>:You have to stop exploring and go into the hospital<br /><br />");  
} 
print"you have <b> {$ir['turns'] }</b> steps left<br />"; 
} 
} 
if($ir['turns']==0) 
{ 
  print "Sorry, all turns used. Come back at newday!<br /><br />"; 
} 
else 
{ 
  //print "<br><br><form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge><input type='text' name='steps' value=' {$ir['turns'] }'><br /><input type=submit value='scavenge'></form>"; 
  print "<form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge><br /><input type=submit value='Continue'></form>"; 
} 
} 
$h->endpage; 
?>

 

I will check back and see if anyone has wuestions for me. Thank you phpfreaks for having this community!

Link to comment
https://forums.phpfreaks.com/topic/140038-firefox-issues/
Share on other sites

First off, Welcome. You've made a good first impression by actually using the [ code ] [ /code ] tags!

Its a good practice to test in all popular browsers (though I only do in FF and IE). Download firefox and test you material in FF.

PHP is server side, so the browser shouldn't/can't effect your code.

this line apears to be where you are reducing the turn value

query("UPDATE users SET turns=turns-1 where userid=$userid",$c); 

 

So, test with FF and see if you can simulate the bug.

Link to comment
https://forums.phpfreaks.com/topic/140038-firefox-issues/#findComment-732675
Share on other sites

Thank you for the response. I This is the source from FF. So I should tell you that I am new to PHP and dont really know what it could be, though I have tested relentlessly and found this issue always happens in FF but not IE.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Mafia-Rule</title>
<style type="text/css">
<!--
body {
background-color: #596C56;
margin-top: 0px;
margin-bottom: 0px;
font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;
color: black;
scrollbar-track: B7C8B6;
scrollbar-face: 596C56;
scrollbar-arrow-color: FFFFFF;
}
a:visited,a:active,a:link { 
color: black;
text-decoration: none;
}
a:hover {
color: white;
font-size: 12px;
font-family: helvetica;
font-style: normal;
font-weight: bold;
}
table,tr,td { 
font-family:helvetica, arial, geneva, sans-serif;
font-size:12px;
}
img { 
border:none;
}
textarea { 
font-family:helvetica, arial, geneva, sans-serif;
font-size:12px;
color: black; 
}
.table2 {
}
.lgrad {
background-image:url(lgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.linegrad {
background-image:url(linegrad.PNG);
background-repeat:repeat-y;
background-align: center;
width:2px;
}
.rgrad {
background-image:url(rgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.dgrad {
background-image:url(dgrad.jpg);
background-repeat:repeat-x;
height:38px;
}
.dgradl {
background-image:url(dgradl.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.dgradr {
background-image:url(dgradr.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.center {
width:932px;
background-color:#B7C8B6;
vertical-align:top;
text-align:left;
}
.table {
background-color:#596C56;
}
.table3 {
background-color:#000000;
}
.table td {
background-color:#B7C8B6;
height:22px;
}
.table3 td {
background-color:#CCCCCC;
}
.table4 td {
background-color:#7F9A65;
}
.table5 td {
background-color:#B7C8B6;
}
td .alt {
background-color:#EEEEEE;
height:22px;
}
td .h {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #596C56;
}
.table th {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color:#596C56;
}
-->
<script type="text/javascript">
at_attach("sample_attach_src_parent", "sample_attach_src_child",
          "click", "x", "pointer");
</script>
</style></head>
<body>
<center>
<table width="970" border="0" cellpadding="0" cellspacing="0" class="table2">
<tr>
<td class="lgrad"></td>
<td class="center"><center>
<table cellspacing='0' >
<tr>
<td>

	<table cellspacing='0' >
		<tr>
			<td>
			<center>
				<img src="voteedit.gif"/>
			</center>
			</td>
		</tr>
		<tr>

			<td>
				<img src="buy-pack.gif"/>
			</td
		</tr>
	</table>
</td>
<td>
	<table cellspacing='0'  width="600px">
		<tr>
			<td>

			<center>
				<img src="" alt="Mafia Rule" />
			</center>
			</td>
		</tr>
	</table>
</tr>

<td>
<table cellspacing='0' width="10px  border='1'"
</table>

</td>


<table cellspacing='0' width="160px"  >
<tr>
<td>
	<table  width="100%" cellspacing='0' >
	<tr>
		<td>
			<img src="user-panel.gif" alt="Mafia Rule" />

		</td>

	</tr>
	</table>
	<table cellspacing='0'>
	<tr>
		<td>
			<a href='preferences.php'>Preferences</a>
		</td>
	<tr>

		<td>
			<a href='preport.php'>Player Report</a>
		</td>
	</tr>
	<tr>
		<td>
			<a href='helptutorial.php'>Help Tutorial</a>
		</td>

	</tr>
	<tr>
		<td>
			<a href='gamerules.php'>Game Rules</a>
		</td>
	</tr>
	<tr>
		<td>

			<a href='viewuser.php?u=1'>My Profile</a>
		</td>
	</tr>
	</table>
</td>
</tr>
</table>
</tr>
</table>

</center>

<center>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr height="0">
<td valign=top>
Energy: 100%<br />
<img src=greenbar.png width=100 height=10><img src=redbar.png width=0 height=10></td>
<td valign=top>
Will: 100%<br />
<img src=greenbar.png width=100 height=10><img src=redbar.png width=0 height=10></td>
<td valign=top>
Brave: 309/309<br />
<img src=greenbar.png width=100 height=10><img src=redbar.png width=0 height=10></td>

<td valign=top>
EXP: 0%<br />
<img src=greenbar.png width=0 height=10><img src=redbar.png width=100 height=10></td>
<td valign=top>
Health: 100%<br />
<img src=greenbar.png width=100 height=10><img src=redbar.png width=0 height=10></td><br /></center></table>
<br />

</center>
<table width="100%" border="0" cellpadding="0" cellspacing="0">



<!-- Begin Left Side Menu Area -->

<td width="20%" bgcolor="#B7C8B6" valign="top">
</br>
</br>
<table width='100%' border='1'>
<tr>
<td>
	<table width='100%' cellspacing='0' class='h'>
	<tr>
		<td>

			<font color=white><center>Quick Stats</center></font>
		</td>
	</tr>
	</table>

	<table width='100%' cellspacing='0' class='mktable'>
	<tr>
		<td>
			Name:  <b>Killu [1] <img src='donator.gif' alt='Donator: 122 Days Left' title='Donator: 122 Days Left' /></b> 
		</td>

	</tr>
	<tr>
		<td>
			Class:  <b>Agent</b> 
		</td>
	</tr>
<tr>
	<td>

<a href='newbustlist.php'><b>My Bust List</b></a>
	</td>
</tr>

	<tr>
		<td>
			Money: <b>$178,920,137</b>
		</td>

	</tr>
	<tr>
		<td>
			<a href='bank.php'>Bank: <b>$1,173</b></a>
		</td>
	</tr>
	<tr>
		<td>

			<a href='moneymarket.php'>Money Market: <b>$0</b></a>
		</td>
	</tr>
	<tr>
		<td>
			<a href='crystalsbank.php'>Crystals: <b>2463</b></a>
		</td>

	</tr>
	<tr>
		<td>
			Level: <b>153</b>
		</td>
	</tr>
	<tr>
		<td>

			Bodyguard Time: <b>0</b> minutes
		</td>
	</tr>
	<tr>
		<td>
			[<a href='logout.php'>Logout</a>]
		</td>

	</tr>
	</table>

</tr>
</td>
</table>
</br>
<table width='100%' border='1'>
<tr>
<td>

<table width='100%' cellspacing='0' class='h'>
<tr>
	<td>
		<font color=white><center>Game Links</center></font>
	</td>
</tr>
</table>

<table width='100%' cellspacing='0' class='mktable'  >

<tr>
	<td>
		<a href='index.php'>Home</a>
	</td>
</tr>
<tr>
	<td>
		<a href='inventory.php'>Inventory</a>

	</td>
</tr>
<tr>
	<td>
		<a href='street.php'>Walk the Streets</a><br />
		(Steps Left: 33)
	</td>
</tr>
<tr>

	<td>
		<a href='explore.php'>El Paso</a>
	</td>
</tr>
<tr>
	<td>
		<a href='gym2.php'>Gym</a>
	</td>

</tr>
<tr>
	<td>
		<a href='criminal.php'>Crimes</a>
	</td>
</tr>
<tr>
	<td>

		<a href='monorail.php'>Airport</a>
	</td>
</tr>
<tr>
	<td>
		<a href='forums.php'>Forums</a>
	</td>
</tr>

<tr>
	<td>
		<a href='ultrasearch.php'>Search</a>
	</td>
</tr>
<tr>
	<td>
		<a href='yourgang.php'>Your Gang</a>

	</td>
</tr>
</table>			
</td>
</tr>
</table>

</br>

<table width='100%' border='1'>
<tr>
<td>

<table width='100%' cellspacing='0' class='h'>
<tr>
	<td>
		<font color=white><center>Time Wasters</center></font>
	</td>
</tr>
</table>

<table width='100%' cellspacing='0' class='mktable' >

<tr>
	<td>
		<a href='hospital.php'>Hospital (6)</a>
	</td>
</tr>
<tr>
	<td>
		<a href='jail.php'>Jail (0)</a>

	</td>
</tr>
</table>

</td>
</tr>
</table>

</br>

<table width='100%' border='1'>
<tr>
	<td>

		<table width='100%' height='1'  cellspacing='0' bgcolor='#330000'>
	</td>
	<td>
		<font color=white><center>Important Info</center></font>
	</td>
</tr>
</table>

<table width='100%' height='1'  cellspacing='0' >

<tr>
	<td>
		<a href='events.php'>Events (0)</a>
	</td>
</tr>
</table>
<table width='100%' height='1'  cellspacing='0' >
<tr>

	<td>
		<a href='announcements.php'>Announcements (0)</a>
	</td>
</tr>
</table>
<table width='100%' height='1'  cellspacing='0' >
<tr>
	<td>

		<a href='mailbox.php'>Mailbox (0)</a>
	</td>
</tr>
</table>
</td>
</tr>
</table>	
</br>

<table width='100%' border='1'>
<tr>

<td>
<table width='100%' height='1'  cellspacing='0' class='h'>
<tr>
	<td>
		<font color=white><center>Staff Panel</center></font>
	</td>
</tr>
</table>

<table width='100%' height='1'  cellspacing='0' >
<tr>
	<td>
		<a href='staff.php'>Staff Panel</a>
	</td>
</tr>
</table>
</td>

</tr>
</table>
</br>
<table width='100%' border='1'>
<tr>
<td>
<table width='100%' height='1'  cellspacing='0' bgcolor='#330000' >
<tr>
	<td>

		<font color=white><center>Staff Online</center></font>
	</td>
</tr>
</table>
	<table width='100%' height='1'  cellspacing='0' >
	<tr>
		<td>
			<a href='viewuser.php?u=1'>Killu</a> (0 secs)
		</td>

	</tr>
	</table>

</td>
</tr>
</table>
</br>
<table width='100%' border='1'>
<tr>
<td>
	<table width='100%' height='1'  cellspacing='0' class='h'>

	<tr>
		<td>
			<font color=white><center>Donators Only</center></font>
		</td>
	</tr>
	</table>
	<table width='100%' cellspacing='0' >
	<tr>

		<td>
			<a href='friendslist.php'>Friends List</a>
		</td>
	</tr>
	<tr>
		<td>
			<a href='blacklist.php'>Black List</a>
		</td>

	</tr>
	</table>
</td>
</tr>
</table></td><td width="2"  bgcolor="#B7C8B6"> </td><td width="80%"  bgcolor="#B7C8B6" valign="top"><br /><center>
January 8, 2009<br />
6:36:56  pm<br /><h3>You are currently searching the streets</h3>You see a guy getting mugged, but you decide to keep walking. You don't want to be in his shoes anytime soon.<br /><br /><br /><br /><br /><br />you have <b> 33</b> steps left<br /><form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge><br /><input type=submit value='Continue'></form>

 

Below is the source from IE.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Mafia-Rule</title>
<style type="text/css">
<!--
body {
background-color: #596C56;
margin-top: 0px;
margin-bottom: 0px;
font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;
color: black;
scrollbar-track: B7C8B6;
scrollbar-face: 596C56;
scrollbar-arrow-color: FFFFFF;
}
a:visited,a:active,a:link { 
color: black;
text-decoration: none;
}
a:hover {
color: white;
font-size: 12px;
font-family: helvetica;
font-style: normal;
font-weight: bold;
}
table,tr,td { 
font-family:helvetica, arial, geneva, sans-serif;
font-size:12px;
}
img { 
border:none;
}
textarea { 
font-family:helvetica, arial, geneva, sans-serif;
font-size:12px;
color: black; 
}
.table2 {
}
.lgrad {
background-image:url(lgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.linegrad {
background-image:url(linegrad.PNG);
background-repeat:repeat-y;
background-align: center;
width:2px;
}
.rgrad {
background-image:url(rgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.dgrad {
background-image:url(dgrad.jpg);
background-repeat:repeat-x;
height:38px;
}
.dgradl {
background-image:url(dgradl.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.dgradr {
background-image:url(dgradr.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.center {
width:932px;
background-color:#B7C8B6;
vertical-align:top;
text-align:left;
}
.table {
background-color:#596C56;
}
.table3 {
background-color:#000000;
}
.table td {
background-color:#B7C8B6;
height:22px;
}
.table3 td {
background-color:#CCCCCC;
}
.table4 td {
background-color:#7F9A65;
}
.table5 td {
background-color:#B7C8B6;
}
td .alt {
background-color:#EEEEEE;
height:22px;
}
td .h {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #596C56;
}
.table th {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color:#596C56;
}
-->
<script type="text/javascript">
at_attach("sample_attach_src_parent", "sample_attach_src_child",
          "click", "x", "pointer");
</script>
</style></head>
<body>
<center>
<table width="970" border="0" cellpadding="0" cellspacing="0" class="table2">
<tr>
<td class="lgrad"></td>
<td class="center"><center>
<table cellspacing='0' >
<tr>
<td>
	<table cellspacing='0' >
		<tr>
			<td>
			<center>
				<img src="voteedit.gif"/>
			</center>
			</td>
		</tr>
		<tr>
			<td>
				<img src="buy-pack.gif"/>
			</td
		</tr>
	</table>
</td>
<td>
	<table cellspacing='0'  width="600px">
		<tr>
			<td>
			<center>
				<img src="" alt="Mafia Rule" />
			</center>
			</td>
		</tr>
	</table>
</tr>

<td>
<table cellspacing='0' width="10px  border='1'"
</table>
</td>


<table cellspacing='0' width="160px"  >
<tr>
<td>
	<table  width="100%" cellspacing='0' >
	<tr>
		<td>
			<img src="user-panel.gif" alt="Mafia Rule" />

		</td>
	</tr>
	</table>
	<table cellspacing='0'>
	<tr>
		<td>
			<a href='preferences.php'>Preferences</a>
		</td>
	<tr>
		<td>
			<a href='preport.php'>Player Report</a>
		</td>
	</tr>
	<tr>
		<td>
			<a href='helptutorial.php'>Help Tutorial</a>
		</td>
	</tr>
	<tr>
		<td>
			<a href='gamerules.php'>Game Rules</a>
		</td>
	</tr>
	<tr>
		<td>
			<a href='viewuser.php?u=1'>My Profile</a>
		</td>
	</tr>
	</table>
</td>
</tr>
</table>
</tr>
</table>
</center>

<center>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr height="0">
<td valign=top>
Energy: 100%<br />
<img src=greenbar.png width=100 height=10><img src=redbar.png width=0 height=10></td>
<td valign=top>
Will: 100%<br />
<img src=greenbar.png width=100 height=10><img src=redbar.png width=0 height=10></td>
<td valign=top>
Brave: 309/309<br />
<img src=greenbar.png width=100 height=10><img src=redbar.png width=0 height=10></td>
<td valign=top>
EXP: 0%<br />
<img src=greenbar.png width=0 height=10><img src=redbar.png width=100 height=10></td>
<td valign=top>
Health: 100%<br />
<img src=greenbar.png width=100 height=10><img src=redbar.png width=0 height=10></td><br /></center></table>
<br />

</center>
<table width="100%" border="0" cellpadding="0" cellspacing="0">



<!-- Begin Left Side Menu Area -->

<td width="20%" bgcolor="#B7C8B6" valign="top">
</br>
</br>
<table width='100%' border='1'>
<tr>
<td>
	<table width='100%' cellspacing='0' class='h'>
	<tr>
		<td>
			<font color=white><center>Quick Stats</center></font>
		</td>
	</tr>
	</table>

	<table width='100%' cellspacing='0' class='mktable'>
	<tr>
		<td>
			Name:  <b>Killu [1] <img src='donator.gif' alt='Donator: 122 Days Left' title='Donator: 122 Days Left' /></b> 
		</td>
	</tr>
	<tr>
		<td>
			Class:  <b>Agent</b> 
		</td>
	</tr>
<tr>
	<td>
<a href='newbustlist.php'><b>My Bust List</b></a>
	</td>
</tr>

	<tr>
		<td>
			Money: <b>$178,920,137</b>
		</td>
	</tr>
	<tr>
		<td>
			<a href='bank.php'>Bank: <b>$1,173</b></a>
		</td>
	</tr>
	<tr>
		<td>
			<a href='moneymarket.php'>Money Market: <b>$0</b></a>
		</td>
	</tr>
	<tr>
		<td>
			<a href='crystalsbank.php'>Crystals: <b>2463</b></a>
		</td>
	</tr>
	<tr>
		<td>
			Level: <b>153</b>
		</td>
	</tr>
	<tr>
		<td>
			Bodyguard Time: <b>0</b> minutes
		</td>
	</tr>
	<tr>
		<td>
			[<a href='logout.php'>Logout</a>]
		</td>
	</tr>
	</table>

</tr>
</td>
</table>
</br>
<table width='100%' border='1'>
<tr>
<td>
<table width='100%' cellspacing='0' class='h'>
<tr>
	<td>
		<font color=white><center>Game Links</center></font>
	</td>
</tr>
</table>

<table width='100%' cellspacing='0' class='mktable'  >
<tr>
	<td>
		<a href='index.php'>Home</a>
	</td>
</tr>
<tr>
	<td>
		<a href='inventory.php'>Inventory</a>
	</td>
</tr>
<tr>
	<td>
		<a href='street.php'>Walk the Streets</a><br />
		(Steps Left: 30)
	</td>
</tr>
<tr>
	<td>
		<a href='explore.php'>El Paso</a>
	</td>
</tr>
<tr>
	<td>
		<a href='gym2.php'>Gym</a>
	</td>
</tr>
<tr>
	<td>
		<a href='criminal.php'>Crimes</a>
	</td>
</tr>
<tr>
	<td>
		<a href='monorail.php'>Airport</a>
	</td>
</tr>
<tr>
	<td>
		<a href='forums.php'>Forums</a>
	</td>
</tr>
<tr>
	<td>
		<a href='ultrasearch.php'>Search</a>
	</td>
</tr>
<tr>
	<td>
		<a href='yourgang.php'>Your Gang</a>
	</td>
</tr>
</table>			
</td>
</tr>
</table>

</br>

<table width='100%' border='1'>
<tr>
<td>
<table width='100%' cellspacing='0' class='h'>
<tr>
	<td>
		<font color=white><center>Time Wasters</center></font>
	</td>
</tr>
</table>

<table width='100%' cellspacing='0' class='mktable' >
<tr>
	<td>
		<a href='hospital.php'>Hospital (5)</a>
	</td>
</tr>
<tr>
	<td>
		<a href='jail.php'>Jail (0)</a>
	</td>
</tr>
</table>

</td>
</tr>
</table>

</br>

<table width='100%' border='1'>
<tr>
	<td>
		<table width='100%' height='1'  cellspacing='0' bgcolor='#330000'>
	</td>
	<td>
		<font color=white><center>Important Info</center></font>
	</td>
</tr>
</table>

<table width='100%' height='1'  cellspacing='0' >
<tr>
	<td>
		<a href='events.php'>Events (0)</a>
	</td>
</tr>
</table>
<table width='100%' height='1'  cellspacing='0' >
<tr>
	<td>
		<a href='announcements.php'>Announcements (0)</a>
	</td>
</tr>
</table>
<table width='100%' height='1'  cellspacing='0' >
<tr>
	<td>
		<a href='mailbox.php'>Mailbox (0)</a>
	</td>
</tr>
</table>
</td>
</tr>
</table>	
</br>

<table width='100%' border='1'>
<tr>
<td>
<table width='100%' height='1'  cellspacing='0' class='h'>
<tr>
	<td>
		<font color=white><center>Staff Panel</center></font>
	</td>
</tr>
</table>

<table width='100%' height='1'  cellspacing='0' >
<tr>
	<td>
		<a href='staff.php'>Staff Panel</a>
	</td>
</tr>
</table>
</td>
</tr>
</table>
</br>
<table width='100%' border='1'>
<tr>
<td>
<table width='100%' height='1'  cellspacing='0' bgcolor='#330000' >
<tr>
	<td>
		<font color=white><center>Staff Online</center></font>
	</td>
</tr>
</table>
	<table width='100%' height='1'  cellspacing='0' >
	<tr>
		<td>
			<a href='viewuser.php?u=1'>Killu</a> (0 secs)
		</td>
	</tr>
	</table>

</td>
</tr>
</table>
</br>
<table width='100%' border='1'>
<tr>
<td>
	<table width='100%' height='1'  cellspacing='0' class='h'>
	<tr>
		<td>
			<font color=white><center>Donators Only</center></font>
		</td>
	</tr>
	</table>
	<table width='100%' cellspacing='0' >
	<tr>
		<td>
			<a href='friendslist.php'>Friends List</a>
		</td>
	</tr>
	<tr>
		<td>
			<a href='blacklist.php'>Black List</a>
		</td>
	</tr>
	</table>
</td>
</tr>
</table></td><td width="2"  bgcolor="#B7C8B6"> </td><td width="80%"  bgcolor="#B7C8B6" valign="top"><br /><center>
January 8, 2009<br />
6:41:51  pm<br /><h3>You are currently searching the streets</h3>While searching the streets you found <b> $4774</b>.<br /><br /><br /><br /><br /><br />you have <b> 30</b> steps left<br /><form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge><br /><input type=submit value='Continue'></form>

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/140038-firefox-issues/#findComment-732698
Share on other sites

First off, Welcome. You've made a good first impression by actually using the [ code ] [ /code ] tags!

Its a good practice to test in all popular browsers (though I only do in FF and IE). Download firefox and test you material in FF.

PHP is server side, so the browser shouldn't/can't effect your code.

this line apears to be where you are reducing the turn value

query("UPDATE users SET turns=turns-1 where userid=$userid",$c); 

 

So, test with FF and see if you can simulate the bug.

 

I have tested with FF and I do recieve this turns reduce by a value of 2 in FF. Very annoying problem lol.

Link to comment
https://forums.phpfreaks.com/topic/140038-firefox-issues/#findComment-732704
Share on other sites

I do not know if this is the problem or not but in your form code:

 

<form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge>

 

You define "action" twice. I would remove the hidden input part, as it is not needed:

<form method=post action=street.php?action=scavenge>

 

Change it to be just that without the hidden input and see if that fixes the issue.

Link to comment
https://forums.phpfreaks.com/topic/140038-firefox-issues/#findComment-732710
Share on other sites

I do not know if this is the problem or not but in your form code:

 

<form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge>

 

You define "action" twice. I would remove the hidden input part, as it is not needed:

<form method=post action=street.php?action=scavenge>

Change it to be just that without the hidden input and see if that fixes the issue.

Tried this with no luck. Thank you for the response. It does exactly the same 2 down in FF and 1 down in IE.

 

Link to comment
https://forums.phpfreaks.com/topic/140038-firefox-issues/#findComment-732719
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.