 |
 |
 |
 |
 |
| Author |
Message |
Hemen
Joined: 27 Jan 2008 Posts: 1
|
|
A LOGIN PROBLEM! |
|
When i log in it stays: Warning: Invalid argument supplied for foreach() in C:\hosted\pokenorway\cutewww\inc\functions.inc.php on line 56 plz help me!
|
|
| Sun Jan 27, 2008 1:59 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 2214 Location: US |
|
|
|
I think
 |  | ///////////////////////////////////////////////////////
// Function: check_login
// Description: Check login information
[b]function check_login($username, $md5_password){
global $member, $members;[/b]
$result = false;
foreach ($members as $row){
if ($username == $row['username'] and $md5_password == $row['password']){
$result = true;
$member = $row;
}
}
return $result;
} |
isn't working.. but I don't know why. I made line 56 bold. Sounds server related.
_________________ Follow me: http://www.scodal.com - http://www.twitter.com/scodal - http://scodal.tumblr.com - http://www.scottdizzle.com - http://facebook.com/scodal |
|
| Sun Jan 27, 2008 6:00 pm |
|
 |
samiro

Joined: 20 Apr 2008 Posts: 93 Location: IL |
|
|
| Sat Jun 20, 2009 3:08 pm |
|
 |
motibr1
Joined: 16 Dec 2009 Posts: 1
|
|
have he same problem in this server |
|
what can i do
_________________ -------------------------------------------------------------
my site www.publichealth.co.il |
|
| Wed Dec 16, 2009 8:05 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
 |
 |
 |
|