Hello, I have a SQL query that links 2 tables. We need to make a restriction on the output, that is, if orders.paid = 1 then we deduce how to implement, here’s the query
$history = mysql_query(" SELECT orders.name, orders.email, orders.paid FROM user INNER JOIN orders ON user.userEmail = orders.email ORDER BY user.userEmail; ");