PHP questions

Is there a possibilitie for something like: $test = mysqli_query($con, "SELECT * from msg_private WHERE sender='$username' OR sender='$receiver' ");

Yes, that would work. You should use a prepared statement instead of sticking variables directly into the query, but the general concept would work.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.