> $query = "SELECT COUNT (login) FROM formacao WHERE login = '$login'"; > $result = mysql_query($query); Make this line instead $result = mysql_query($query) or die(mysql_error() . " with the query $query"; and you'll likely see the error. -- Scott Noyes snoyes@xxxxxxxxx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php