|
Posted by Rami Elomaa on 05/20/07 18:29
Johannes kirjoitti:
> 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?
>
> here's the code I use:
> if ((Status=="actief") AND (MySQL_num_rows($result) >0)){
....
> elseif ((Status=="inactief") AND (MySQL_num_rows($result) >0)){
You sure that it's Status, not $Status? Or do you really have this
somewhere in code: define('Status', 'actief'); ??
--
Rami.Elomaa@gmail.com
"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Navigation:
[Reply to this message]
|