insert into with mysql, multidimensional arrays
Posted: Tue May 31, 2005 11:41 pm
I can't seem to get multidimensional variables to be sent to the database. I have had no problems passing numbers, regular variables, and one dimensional arrays. I have inserted then printed out the entire database to check, and one dimensional variables have their respective values in the database, however with multidimensional arrays, I get something like Array[0], Array[1], Array[2]. Does mysql support multidimensional arrays? How do I represent them? I tried putting double quotes, without quotes, etc..
Code: Select all
$insert=mysql_query("e;INSERT INTO table (a,b,c,d)
VALUES ('aї0]ї0]','aї0]ї1]','aї0]ї2]','aї0]ї3]')"e;)
or die ('insert unsuccessful because'.mysql_error());