02-07-2017, 07:26 PM
so after spending a bit of time setting up a test the solution is as follows:
Replace
with
notice the single quotes around the 1.
Works on my system so hopefully will work on yours.
Replace
Code:
$foundQ = $db->query("SELECT * FROM users WHERE volunteer = 1 AND id = ?",($m));
with
Code:
$foundQ = $db->query("SELECT * FROM users WHERE volunteer = '1' AND id = ?",($m));
notice the single quotes around the 1.
Works on my system so hopefully will work on yours.