Hello, I read a ton of replies to this already, and there was a lot of good advice.
However, it should be worth noting (and I don't think anyone did already) that you have a misspelling in this code: <snip> > $password = "********"; > // . . . > $query = "select * from medlemmer where bruker = '$bruker' and passord = > '$passord'"; > // . . . > if( $line[1]='$bruker' and $line[2]='$passord') echo "hei $bruker."; </snip> You initialize the variable as $password, but refer to it as $passord (no 'w'). Maybe that was just a typo in the email, but that will definitely be a problem in the code, too. Of course, all the other advice ('==' instead of '=', '&&' instead of 'and', etc...) should be heeded as well... -- [ joel boonstra | [EMAIL PROTECTED] ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php