+ 1

how to compare the user input form data from database and if it's all ready in database the give msg all ready exist.

how to compare the user input form data from database and if it's all ready in database the give msg all ready exist. If it is not avaliabe the add to database..

19th Apr 2017, 8:53 AM
Ritesh Kumar
Ritesh Kumar - avatar
2 Respuestas
+ 5
$entry="some name here"; $result=mysqli_query( "SELECT * FROM students WHERE name==' ".$entry." 'LIMIT=1" ); if(mysqli_fetch_array($result)!==false) echo "entry already exists";
19th Apr 2017, 9:13 AM
Sandeep Chatterjee
0
Not working
19th Apr 2017, 9:26 AM
Ritesh Kumar
Ritesh Kumar - avatar