Hi,
der code funktioniert
$sql = mysql_query("SELECT art FROM table WHERE id = " . intval($_POST['number']) );
>
> wenn number zahlen sind. aber wenn number wie "blue" "pink" ist, geht nicht.
MySQL Handbuch, [9.1. Literale: wie Strings und Zahlen geschrieben werden](http://dev.mysql.com/doc/refman/5.1/de/literals.html)
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“