NilsV
10-11-2005, 15:50
Hallo zusammen..
folgender Text
$test=mysql_query("SELECT * FROM cms_hotels WHERE id IN (SELECT hotel_id FROM cms_hotelkat)")
or die (mysql_error());
gibt das wunderbar hilfreiche "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 'SELECT hotel_id FROM cms_hotelkat)' at line 1" aus. So weit, so gut.
Nur behauptet das Manual, das
SELECT s1 FROM t1 WHERE s1 IN (SELECT s1 FROM t2); richtig ist.
Wer kann mir da helfen?
Danke schon mal.
folgender Text
$test=mysql_query("SELECT * FROM cms_hotels WHERE id IN (SELECT hotel_id FROM cms_hotelkat)")
or die (mysql_error());
gibt das wunderbar hilfreiche "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 'SELECT hotel_id FROM cms_hotelkat)' at line 1" aus. So weit, so gut.
Nur behauptet das Manual, das
SELECT s1 FROM t1 WHERE s1 IN (SELECT s1 FROM t2); richtig ist.
Wer kann mir da helfen?
Danke schon mal.
