Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Błąd w zapytaniu do bazy przez php, w phpMyadmin działa
kriszna
post
Post #1





Grupa: Zarejestrowani
Postów: 36
Pomógł: 2
Dołączył: 6.07.2007
Skąd: Wola Zabierzowska

Ostrzeżenie: (0%)
-----


Witam,
Pisząc pewien skrypt napotkałem na mały problem. Chcę wyciągnąć pewnie informacje z bazy, poprzez zapytanie
  1. SELECT catalog.id,catalog.tracks, catalog.title, catalog.catalog_number, catalog.country, catalog.type, catalog.other WHERE catalog.id IN ('16','18') ORDER BY catalog.ORDER DESC LIMIT 0,10

jednak dostaje komunikat:
Cytat
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE catalog.id IN ('16','' at line 2

Po usunięciu ' ' z IN()
Cytat
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE catalog.id IN (16,' at line 2

Nie mam pomysłu co mogę robić źle.
Z góry dzięki za pomoc
Kriszna
Go to the top of the page
+Quote Post

Posty w temacie


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: 25.08.2025 - 00:02