mysql_query("INSERT INTO data(timestamp,type,lift,sets,reps,weight) VALUES(".$time.",".$_POST[type][$i].",".$_POST[lift][$i].",".$_POST[sets][$i].",".$_POST[reps][$i].",".$_POST[weight][$i].")")or die(mysql_error());
My code is as above. All the variables are set.
The error I am getting is
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 'Standing DB Hammer Curls,1,2,3)' at line 1
There is seemingly no reason for this.
Could someone clarifty on the problem, and ideally explain why multi dimensional arrays are so particular as far as what they need to be enclosed between etc.
Cheers