You are here: Re: if AND « PHP Programming Language « IT news, forums, messages
Re: if AND

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация