I have this query:
$q = $dbc -> prepare("SELECT * FROM mailbox WHERE msgTo = ? && read = 0");
$q -> execute(array($user['id']));
$mailboxCount = $q -> rowCount();
Now in my table I have
msgTo = 1, read = 0
$user[‘id’] is equal to 1
But the row count returns 0 why is this?
from
ManualSEE this
exampleand written clearly