Re: problem using &&

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



php@xxxxxxxxx wrote:
if( $out[0][0] == $u && $out[0][1] == $p ) {
			$error = "Login successful!";
		}
	else {
			$error = "Invalid username/password. Try again";
		}

If I just test if( $out[0][1] == $u ) it works.
If statement above works then $out[0][1] contains user name but in code snippet

if( $out[0][0] == $u && $out[0][1] == $p ) {

you are testing it against $p which I guess is password..

--
Sameer N. Ingole
weblogic.noroot.org/gallery2/v/travel/lonar/
---
Better to light one candle than to curse the darkness.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux