Jump to content

verify the user is in database(help)


giridharseel

Recommended Posts

 

      $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

Link to comment
https://forums.phpfreaks.com/topic/145263-verify-the-user-is-in-databasehelp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.