I have a wierd problem with a login page I'm doing.
This is the code I've made...
$logon = mysql_query("SELECT count(*) FROM diabolical_users WHERE nickname='$nickname' AND password='". md5($password.$admin_code) ."'");
$num = mysql_num_rows($logon);
if ($num < 1) {
echo "Wrong password!";
} else {
echo "Welcome!";
Whatever the result becomes, it echoes the message twice...
On success... it reads Welcome!Welcome!
And the same when you fail to login...
What is the wierd problem here?