RE: [PHP] Re: Login page
| From: | Jay Blanchard | Date: | Thu, 06 May 2004 13:13:32 +0000 |
| Subject: | RE: [PHP] Re: Login page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-185523@lists.php.net to get a copy of this message | ||
[snip]
Warning: mysql_real_escape_string() expects parameter 2 to be resource,
null
given in /home2/erik/gjertsen-www/Skole22/Loggin/login.php on line 28
> 1........ return mysql_real_escape_string($data, $dbc);
[/snip]
Please post only the relevant code.
mysql_real_escape_string is expecting that $dbc would be your database
connection. $dbc is not the connection. Please see
http://www.php.net/mysql_real_escape_string