Hi!
I have a long array in javascript and and would like to move it to MySQL database.
my array looks something like this:
------------------------
var brands= new Array();
brands[0]='all'
brands[23]='all2'
.......
brands[n]='alln'
------------------------
and then every member in this array has its own array.
------------------------
brandModels[1] = new Array('3000:name_1','1399:name_2','1400:name_3','3438:name_4','5913:name_6','6119:name_7','2928:name_8);
------------------------
I need to put the data a table in such format:
INSERT INTO `site_make` VALUES (number of brands array , that arrays members first part, second part)
example:
INSERT INTO `site_make` VALUES (1,3000, name_1);
INSERT INTO `site_make` VALUES (1,1399,name_2);
Thanks for any help!!!
I have a long array in javascript and and would like to move it to MySQL database.
my array looks something like this:
------------------------
var brands= new Array();
brands[0]='all'
brands[23]='all2'
.......
brands[n]='alln'
------------------------
and then every member in this array has its own array.
------------------------
brandModels[1] = new Array('3000:name_1','1399:name_2','1400:name_3','3438:name_4','5913:name_6','6119:name_7','2928:name_8);
------------------------
I need to put the data a table in such format:
INSERT INTO `site_make` VALUES (number of brands array , that arrays members first part, second part)
example:
INSERT INTO `site_make` VALUES (1,3000, name_1);
INSERT INTO `site_make` VALUES (1,1399,name_2);
Thanks for any help!!!