[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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php