Hello,
$q sind bis zu 5 sql-befehle hintereinander immer durch ein ; getrennt (so wie man das in phpmyadmin auch machen kann)
das machen die Standartbefehle für mysql unter PHP nicht mit (Sicherheitsgründe, siehe SQL-Injection). PHPMyAdmin verheimlicht das vor dir in dem es deine Eingabe automatisch auf diese Trenner parst und die Befehle getrennt voneinander absetzt.
MfG
Rouven
--
-------------------
He is entertaining both out of the car and in the car because if you tell him that a corner is almost flat then he is the guy who is going to try to take it flat even if it means shunting it the other side of it, he will come with the data and say 'hey, I may have crashed and destroyed the car, but I was flat-out'. That is an interesting quality that he has! -- Team Member on Jacques Villeneuve
-------------------
He is entertaining both out of the car and in the car because if you tell him that a corner is almost flat then he is the guy who is going to try to take it flat even if it means shunting it the other side of it, he will come with the data and say 'hey, I may have crashed and destroyed the car, but I was flat-out'. That is an interesting quality that he has! -- Team Member on Jacques Villeneuve