Hi,
I would get the number of rows returned. If you get 1 then you don't have to check for the password again since you already did in the query!
Also, you should use mysql_fetch_array if you want to do something like "$row["passwd"]. If you do mysql_fetch_row you should use $row[1];
$query = "SELECT username, passwd FROM geintje WHERE username = '$usernaam' AND passwd = '$wachtwoord'";
$result = mysql_query($query);
echo mysql_error();
$num = mysql_num_rows($result);
if ($num == 1) {
echo ("Welcome");
} else {
.. something wrong.. either the user or password wrong. If num > 1 then you have a database problem.
}
F.