Answer the question
In order to leave comments, you need to log in
How to make comparison on two parameters?
Good day, please tell me how to compare 2 parameters with a POST request from the database? For example, if the First Name, Last Name and Date of Birth match, then do not write down the data, and if not, then write it down. Here's how I compare the data from the POST request with the data from the database. Tell me please!
Answer the question
In order to leave comments, you need to log in
in the end, while waiting for an answer, I solved this problem myself, I don’t know if it will come in handy for someone:
if( R::exec('SELECT * FROM `dlepisode1` WHERE `nickname` = ? AND `games` = ?', array($data['nickname'], $data['gamesname'])) > 0)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question