Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem
-Wieviór-
post
Post #1





Goście







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
Go to the top of the page
+Quote Post

Posty w temacie
- Wieviór   Problem   31.05.2004, 19:57:34
- - Kinool   hmm a nie lepiej zrobic jako default NULL i potem ...   31.05.2004, 20:12:29
- - bartek89   weź to od nowej linni hjak ci to Kinool podał albo...   1.06.2004, 12:59:45


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 23:40