Good day. I want to check my database if it has a row that contains three variables that I assigned:
I used this script and it’s not giving the result that I want.
SELECT * FROM `table_name`
WHERE `field1`='$var1'
AND `field2`='$var2'
AND `field3`='$var3'
Is there something wrong with my code?
Nothing is wrong with the query but check if something is wrong with the table by using