I would like to user a variable inside of a PHP MySQL query to represent the WHERE clause like so:
$where= name=mark AND address=4;
$query= "SELECT * FROM clients WHERE $where";
Am I doing this correct? If not, what is the correct what to do so?