I am in the middle of a project for my Comp Science project on Monday, and I came across a MySQL query question.
What I want to achieve is through words.
If the column to = jake and the column from = connor OR column to = connor and column from = jake get the cID from this particular table.
What I still have is
$query="SELECT cID FROM conversation WHERE to='$to' AND to='$from' OR to='$from' AND from='$to'";
What can I do to make this request work? Thanks in advance!
source share