Looking for the correct use for the Where and In clause. If this is not correct could you let me know the right way to use it please
mysqli_query=($connection,"select * from tablename where a=1 or a=2 and c=1 and d=2);
I am trying to do the query this way using the in clause
mysqli_query=($connection,"select * from tablename where a in(1,2) and c=1 and d=2);
is thsi the correct way to use the where and In when you are looking for more than one value in a?
Many thanks P