Jump to content

[SOLVED] Adding problem in FIREFOX


noj75

Recommended Posts

Hi all,

 

I am trying to get this code to update a gamers database field by 10 each time the query is run.

 

The code is working fine in IE but for some reason it adds 30 in Firefox when it is supposed to add 10.

 

Anyone any ideas on why its doing this? Is it something to do with the sessions?

 


			$mastery = $row['mastery']; /* Current mastery */

			if($mastery == '0') {
				$mastery = '10';
			} elseif($mastery > '0') {
				$mastery = $mastery + '10';
			}

			if($row['mastery'] == '90') {
				$mastery = '0';
			}

			$uqry = "UPDATE $table SET ";
			$uqry .= "mastery = '".$mastery."' ";
			$uqry .= "WHERE gamerid = '".mysql_real_escape_string($_SESSION['gid'])."'";
			$ures = mysql_query($uqry);


Link to comment
https://forums.phpfreaks.com/topic/176176-solved-adding-problem-in-firefox/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.