|
Posted by Bas Cost Budde on 05/21/07 22:17
Uit het bericht van Johannes:
> Hey guys,
>
> I'm building a login script using an active or inactive state, but
> when i check for this state it just simply skips to the incorrect
> login. It looks like the If ... AND ... part isn't working. Can
> anybody give me a hand with this problem?
Bedoel je wel AND, en niet && ?
Er -- for the english among us: do you mean to use the AND operator,
instead of the (to me more usual) && ?
If you put the num_rows test outside, i.e. in a separate if(), you can
see whether your query returns a row. Something I'd do anyway. Both
actions may be executed only if the login was valid.
--
Bas Cost Budde
Holland
[Back to original message]
|