Re: why doesnt this work???
| From: | Joel Boonstra | Date: | Wed, 20 Mar 2002 21:37:17 +0000 |
| Subject: | Re: why doesnt this work??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89414@lists.php.net to get a copy of this message | ||
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 | jboonstra@gospelcom.net ]