How do I get this query:
SELECT * FROM playernews WHERE player='$playerid'
to also check for WHERE news=0?
for example, SELECT * FROM playernews WHERE player='$playerid' AND news=0
but that gives a syntax error.
It's giving you a syntax error because the query should read:
SELECT * FROM playernews WHERE player='$playerid' AND news='0'
Notice the single quotes.
i have tried that to no avail 🙁
read is a reserved word. Rename the field and try again :-)
Thanks 🙂 that fixed it.