[EMAIL PROTECTED] 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

Reply via email to