Niko Mühlhans: MySQL Abfrage mit Bedingung

Beitrag lesen

Hallo Niko,

Zeile 46:$abfrage = mysql_query("SELECT * FROM tabelle WHERE alter < 30");
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in datei.php on line 47
was sag mysql_error()? (hinter mysql_query() noch ein 'or die(mysql_error())' dranhängen)

Grüße aus Nürnberg
Tobias

Dabei kam das heraus:
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 'alter < 30' at line 1

Server Version:
MySQL 4.0.18