A LOGIN PROBLEM!

Post your problems with the script.

A LOGIN PROBLEM!

Postby Hemen » Sun Jan 27, 2008 1:59 pm

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!
Hemen
 
Posts: 1
Joined: Sun Jan 27, 2008 1:57 pm

Postby scottdallas » Sun Jan 27, 2008 6:00 pm

I think

Code: Select all
///////////////////////////////////////////////////////
// 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.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby samiro » Sat Jun 20, 2009 3:08 pm

have he same problem in this server
https://fasthosts.co.uk/

what i have to tell them o change...
in other servers it works fine !
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

have he same problem in this server

Postby motibr1 » Wed Dec 16, 2009 8:05 am

what can i do
-------------------------------------------------------------

my site www.publichealth.co.il
motibr1
 
Posts: 1
Joined: Wed Dec 16, 2009 8:01 am


Return to Strawberry Support



Who is online

Users browsing this forum: No registered users and 0 guests

cron