Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 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..
2 ответов
+ 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";
0
Not working