![]() |
|
#1
|
|||
|
|||
Huge Problems in the world of PHPOkay, Im a moderator on a game and the owner has taken flight to another country for awhile, and here recently for some reason the mod tools went nuts, we cant login, I have to access the database to get anything done.
Files: PHP Code:
and then it takes you to this page which is where the errors pop up, It doesnt set a cookie or even check the login. PHP Code:
any help at all would be greatly appeceated, as I have been working on this for hours and came up with nothing. |
|
#2
|
||||
|
||||
Re: Huge Problems in the world of PHPIf this was a copy/paste, and not a typo, check the second block of code carefully around the first 'else'...there are some issues...
1. There appears to be parentheses characters to the else instead of curly-brackets. 2. The for-loop has a semi-colon at the end. I don't think this is what you want. [also, because of #1, the loop appears as if it's part of the else, but probably not] 3. Within the loop's body, the if check is missing a curly-bracket. Basically, verify the layout of your code, and see how it goes. [hint: this is an example of where consistent indenting of the code would have helped! (it isn't that bad though, really)] __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
||||
|
||||
Re: Huge Problems in the world of PHPAlso, glancing over your scripts, I noticed that all your variables are invalid. See the second script you pasted in your opening post.
name should be $name password should be $password data_file should be $data_file ... etc. |
|
#4
|
|||
|
|||
Re: Huge Problems in the world of PHPAnd in the second script,
PHP Code:
PHP Code:
|
Recent GIDBlog
Meeting the populace by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multiple file creation with fopen? | robin | C Programming Language | 6 | 16-Aug-2006 23:38 |
| Problems following php installation | Clive73 | MySQL / PHP Forum | 4 | 02-Jun-2005 10:03 |
| Apache - problems using PHP outside the intranet | ooandioo | Apache Web Server Forum | 6 | 04-Feb-2004 09:27 |
| Problems with apache win 98 php and vhosts | Kplonk | Computer Software Forum - Windows | 2 | 22-May-2002 10:06 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The