Simple php/mysql login - need help!

Hey Everyone.

I’m trying to build a simple php login, and I can’t get it to work. It’s based off of a tutorial, that I’m no longer able to find.
I remember it working at some point, but now it’s not working at all.
It seems it’s not checking the DB at all, and proceeds right to the “You’re in” statement. And I don’t understand why - I think this way of checking against the db worked initially.

Well here’s the code:

<?php

require("vestconfig.php");

    $myuser = addslashes($_POST['user']);
    $mypass = md5($_POST['pass']);

    $result = mysql_query("SELECT count(brugerID) FROM Login WHERE brugerPass='$mypass' AND brugerNavn='$myuser'")
     or die("Couldn't query the user-database.");

    $num_rows = mysql_num_rows($result);

    if($num_rows == 1) {

        echo "You're in...";
        
    } else {       
        include('login_form.html');
}
mysql_close($linkID);
?>

The input form is located within ‘login_form.html’ - which you should be redirected to, since there’s nothing to post initially, IE the db would get no results.
But it’s not working…

Even though this doesn’t seem like the smartest way of doing it, I’ve spent so much time on it now, that I would like to get it to work, in order to learn something and understand php better.

I hope you guys can help me out.
Thanks.