How do I get a return that lets me know that a depulicate exists and cannot be inserted in mySQL using PHP?
Sep 6th, 2003 01:42
Chukwuma Uzoma-Nze, Jeff Guy,
I am going to use the example of inserting crypted passwords into a
you simply verify the user inputed password "$usr_pwd" against the
databse password "$db_pwd" and if they match you proceed:
$query = mysql_query("select pwd from auth where pwd = "$usr_pwd" ",
$queryArray = mysql_fetch_array($query);
//$queryArray will be your result u can echo it!
$db_pwd = $queryArray; //You can put "$queryArray" directly
//into the statement if u wish, I do!