veedeoo is correct. A mysql statement my only contain one line even when it is conjoint like veedeoo did in his example. So in short mysql under the php api will not accept multiple line query's and will only accept single line query's. Fix that part of your code and you should be done.
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
Jibran12345 commented: thanks for your help, but I fixed it differently :D +0
pritaeas commented: Pen and paper indeed. +14
mKorbel commented: interesting +10
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
~s.o.s~ commented: Yeah right, just don't forget the sprinkling of red ants. ;-) +0
aaloo commented: he really undrestood my problem very fast +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
jonesa01 commented: Perfect it was exactly what I was looking for! +1
Rashakil Fol commented: I am adding positive reputation for this post to undermine the reputation system. +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
sergent commented: Who says you disagree with everyone? I agree with you! And of course, the length of python extension is it's greatest strength :D +0
Justinedeleon commented: +1 internets that is very motivating. haha your a cool dude +0
ChrisHunter commented: Amazing reply ! +0
sergent commented: lol +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
JamesPublic commented: Your solution works perfectly cwarn - thank you, I'm off to read more about the implode function! :) +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
phoenix416 commented: Thanks! +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
pritaeas commented: Go cwarn23 ! +14
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
skilly commented: i do believe +0
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
jingda commented: Welcome to the hardware community;) +11
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
happygeek commented: thanks for the tutorial +12
sergent commented: Assembly! +0
kvprajapati commented: I'm glad you got it working. +14