No wiec, mam tabele mecz w bazie danych(id, home, hgol, agol, away), mam w niej 3 rekordy 2 w których są podane pola "hgol" i "agol" i 1 który ma oba pola puste(nie ustawione).
Skrypt ma pokazywać mecze gdzie ustawione(bądź nie wtedy zmieniam zapytanie) jest pole hgol i agol.
Zapytanie:
"SELECT * FROM mecz WHERE agol !=" AND hgol !=" ORDER BY id DESC LIMIT 10"
Generuje błąd:
You have an error in your SQL syntax near '1' at line 1
Warning: Supplied argument is not a valid MySQL result resource in c:apacheuserspremiershipindex.php on line 71
PS. Pole hgol i agol to VARCHAR