hi there i have started a game and i have come across a few problems.please can some one help me out.

Problem 1,
Fatal Error: Cannot redeclare logincheck() (previously declared in ///////*/functions.php:5)-on line 13

when i go there i get this on line 13

thats all thats there and i cant figure out what to do.if i remove }} it gives me anouther error else were.

problem 2,
This is for a banking script.

Warning: mysql_fetch_object(): supplied argument is not a vaild MySQL result resource in
//////*/bank.php on line 251

when i go there i get this


please can some one help as these are the only 2 problems so far that are stoping me please can some one help.

Cannot redeclare logincheck() means you’re trying to create a function with a name that already exists. Line numbers can sometimes be off and you’re going to have to take a good hard look at what you did to make this error appear (probably just change the name of your function). Removing closing accolades is usually a bad idea, so don’t do that.

Supplied argument is not a valid MySQL result resource means that you’re trying to extract values from a variable that’s not a result set. You can easily check this by making sure your SQL query runs properly and actually returns a result set. I think result set variables have a ‘false’ value when a query fails. Check that.

Sponsor our Newsletter | Privacy Policy | Terms of Service