Cannot Redeclare?

From: Date: Sun, 22 Sep 2002 17:52:05 +0000
Subject: Cannot Redeclare?
Groups: php.general 
Request: Send a blank email to php-general+get-117188@lists.php.net to get a copy of this message
Hello, I was just wondering...again...why the heck I keep getting this error. I'm trying to make a function called login() and sometimes it works, other times it hates me and gives me this error: Fatal error: Cannot redeclare login() in c:\apache\htdocs\wiredphp\member\funcs.php on line 5 Here's the contents of the function login(): function login($username, $password) { $sql = "select * from members where username='$username' and passwd = password('$password')"; $result = mysql_query($sql, $wired); if (!$result) return 0; if (mysql_num_rows($result)>0) return 1; else return 0; } Please help. I don't see why this keeps happening... Thanks, Stephen http://www.melchior.us http://php.melchior.us

« previous php.general (#117188) next »