I am sorry if I sound noob but I need some help here. I cant figure out with this query:
$query = "SELECT * FROM msgs WHERE read = 1 AND userid='{$uId}' AND
orderid='{$oId}'; ";
When I do a var_dump
on the query result i get bool(false)
but when I do the same without the read = 1
part it returns results correctly so I guess the problem is with the read = 1
part. Please help, the read
field type is tinyint(1)
.