Answer the question
In order to leave comments, you need to log in
Search in mysql database table?
There is a database with a table (id, name, mail , ip, ... ). When registering on the site, the user specifies the mail. How to send a query to the database to search (check) the existence of mail? And how to check or what will return the execution of the action if it does not find or find mail (true, false ... or something else).
Answer the question
In order to leave comments, you need to log in
SELECT * FROM `tablename` WHERE `mail`=$_POST['mail'];
Returns either an array of data or null.
Screen and edit yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question