Jump to content

Help With SQL Reset thru PHP ???? IM STUMPED PLEASE HELP SOON :(


Dethman

Recommended Posts

Heres the error im trying to get this thing to work...

Error

______________________________________________________________________________

Fatal error: Cannot redeclare reset() in /home2/gt/public_html/functions/reset1.php on line 3|

______________________________________________________________________________|

 

 

heres the code

<?
include("db_connect.php");
function Reset(){
$q="update user_users set `credits`= DEFAULT(`credits`),
                           `tag`= DEFAULT(`tag`), `turns`= DEFAULT(`turns`),
					   `covertTurns`= DEFAULT(`covertTurns`),
					   `attackTroops`= DEFAULT(`attackTroops`),
					   `defenseTroops`= DEFAULT(`defenseTroops`),
					   `covertTroops`= DEFAULT(`covertTroops`),
					   `untrainedTroops`= DEFAULT(`untrainedTroops`), 
					   `covertRank`= DEFAULT(`covertRank`), 
					   `overallRank`= DEFAULT(`overallRank`), 
					   `fleetRank`= DEFAULT(`fleetRank`), 
					   `fleetPow`= DEFAULT(`fleetPow`), 
					   `atkPow`= DEFAULT(`atkPow`), 
					   `defPow`= DEFAULT(`defPow`), 
					   `spyPow`= DEFAULT(`spyPow`), 
					   `tRank`= DEFAULT(`tRank`), 
					   `covertLVL`= DEFAULT(`covertLVL`), 
					   `birthrate`= DEFAULT(`birthrate`), 
					   `vault`= DEFAULT(`vault`), 
					   `aid`= DEFAULT(`aid`), 
					   `arank`= DEFAULT(`arank`), 
					   `commander`= DEFAULT(`commander`), 
					   `shared`= DEFAULT(`shared`), 
					   `allowOfficer`= DEFAULT(`allowOfficer`), 
					   `PPT`= DEFAULT(`PPT`), 
					   `PPtimeleft`= DEFAULT(`PPtimeleft`), 
					   `incomeTroops`= DEFAULT(`incomeTroops`), 
					   `incomerate`= DEFAULT(`incomerate`), 
					   `MT`= DEFAULT(`MT`),
					   `Bonuses`= DEFAULT(`Bonuses`), 
					   `loyalty`= DEFAULT(`loyalty`)";
                              mysql_query($q) or die("Cannot Execute:".mysql_error());
}
Reset();
?>

 

Please help Imidiately I dont have Reset() Declared twice :(

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.