View Single Post
  #1 (permalink)  
Old 14-09-04
drivetowin's Avatar
drivetowin drivetowin is offline
Driving to win
 
Join Date: Aug 2003
Location: If I'm not at home, I'm in hospital
Posts: 7,383
Thanks: 6
Thanked 10 Times in 6 Posts
drivetowin seems to know their stuff
  php/mysql insert problem

Hi

I'm having a problem with php/mysql

if I use insert into table values (xxx,xxx) everything works fine but if I use
insert into table set a=x, b=y, c=z

each new record gets inserted into the table 3 times

Anyone had this happen to them before?

and if so what is the solution - I know I can change all of the statements to use the values () syntax but I'd rather understand why the other one doesn't work.
__________________
Never argue with idiots. They just drag you down to their level and then beat you with their experience.

If ignorance is bliss then some of the people I know must be orgasmic.
Reply With Quote
Sponsored Links