giridharseel Posted February 15, 2009 Share Posted February 15, 2009 $q = "SELECT password FROM ".TBL_USERS." WHERE username = '$username'"; $result = mysql_query($q, $this->connection); if(!$result || (mysql_numrows($result) < 1)){ return 1; //Indicates username failure } plz explain the above code Quote Link to comment Share on other sites More sharing options...
drisate Posted February 15, 2009 Share Posted February 15, 2009 select the password from the table called TBL_USERS where the username is equal to $username Then if no result (!$result) or numbers of row is smaller then 1 (mysql_numrows($result) < 1)) it return 1 (username failure) Quote Link to comment Share on other sites More sharing options...
Lodius2000 Posted February 15, 2009 Share Posted February 15, 2009 why would you be using oop for the connection and not the query, also the use of $this is odd, unless we are inside of a method here Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.