Hello:
I was wondering if I can get some guidance on how to pull data from mysql and inserted in js array in the following manner
var option_array = new Array(num_of_cats);
option_array[0] = new Array(\"You need to select a category\"); // This is the first (blank) category. Don't mess with it.
option_array[1] = new Array(\"-- Select One --\",\"\",\"\",\"\");
option_array[2] = new Array(\"-- Select One --\",\"\",\"\");
option_array[3] = new Array(\"-- Select One --\",\"\",\"\");
option_array[4] = new Array(\"-- Select One --\",\"\",\"\",\"\");
option_array[5] = new Array(\"-- Select One --\",\"\",\"\");
option_array[6] = new Array(\"-- Select One --\",\"\",\"\");
option_array[7] = new Array(\"-- Select One --\",\"\",\"\");
option_array[8] = new Array(\"-- Select One --\",\"\",\"\",\"\");
option_array[9] = new Array(\"-- Select One --\",\"\",\"\");
option_array[10] = new Array(\"-- Select One --\",\"\",\"\");
option_array[11] = new Array(\"-- Select One --\",\"\",\"\");
option_array[12] = new Array(\"-- Select One --\",\"\",\"\");
option_array[13] = new Array(\"-- Select One --\",\"\",\"\");
option_array[14] = new Array(\"-- Select One --\",\"\",\"\");
option_array[15] = new Array(\"-- Select One --\",\"\",\"\");
option_array[16] = new Array(\"-- Select One --\",\"\",\"\");
option_array[17] = new Array(\"-- Select One --\",\"\",\"\");
option_array[18] = new Array(\"-- Select One --\",\"\",\"\");
option_array[19] = new Array(\"-- Select One --\",\"\",\"\");
var text_array = new Array(num_of_cats);
text_array[0] = new Array(\"Please Select a Merchandise\"); // These are general instructions. Change them if you want, or keep them if you don't.
text_array[1] = new Array(\"Butterfly Paddle Blade\");
text_array[2] = new Array(\"Newgy Robot Balls by Dozen\");
text_array[3] = new Array(\"Mini Table For Students training\");
text_array[4] = new Array(\"Nice Cold Drink of H2O\");
text_array[5] = new Array(\"Replenish that thirst with this cold drink of Gatorate\");
text_array[6] = new Array(\"Flextra Butterfly paddle combination\");
text_array[7] = new Array(\"Membership Renewal\");
text_array[8] = new Array(\"Individual Private Lesson for Adults with our Coach Jack by the hour\");
text_array[9] = new Array(\"Individual Private Lesson for Children with our Coachby the hour\");
text_array[10] = new Array(\"Group Lesson for Adults. For this class, a Min 3 and Max 6 persons by the hour\");
text_array[11] = new Array(\"Group Lesson for Children. For this class, a Min 3 and Max 6 persons by the hour\");
text_array[12] = new Array(\"Membership -- Couples (2)\");
text_array[13] = new Array(\"Membership -- Family (Max 4)\");
text_array[14] = new Array(\"Robot Usage -- 30 Minutes Increments\");
text_array[15] = new Array(\"Gift Certificate -- Please provide certificate receiver's name below\");
text_array[16] = new Array(\"Adding Value to an Existing Gift Certificate\");
text_array[17] = new Array(\"RTTC Shirt -- Custom Stiched Shirt\");
text_array[18] = new Array(\"other\");
text_array[19] = new Array(\"Give Credit to a member or player\");
var text_array2 = new Array(num_of_cats);
text_array2[1] = new Array(\"160.00\");
text_array2[2] = new Array(\"6.00\");
text_array2[3] = new Array(\"175.00\");
text_array2[4] = new Array(\"1.00\");
text_array2[5] = new Array(\"2.00\");
text_array2[6] = new Array(\"60.00\");
text_array2[7] = new Array(\"30.00\");
text_array2[8] = new Array(\"40.00\");
text_array2[9] = new Array(\"35.00\");
text_array2[10] = new Array(\"25.00\");
text_array2[11] = new Array(\"20.00\");
text_array2[12] = new Array(\"50.00\");
text_array2[13] = new Array(\"70.00\");
text_array2[14] = new Array(\"5.00\");
text_array2[15] = new Array(\"0.00\");
text_array2[16] = new Array(\"0.00\");
text_array2[17] = new Array(\"25.00\");
text_array2[18] = new Array(\"0.00\");
text_array2[19] = new Array(\"0.00\");
var text_array3 = new Array(num_of_cats);
text_array3[1] = new Array(\"\");
text_array3[2] = new Array(\"\");
text_array3[3] = new Array(\"\");
text_array3[4] = new Array(\"\");
text_array3[5] = new Array(\"\");
text_array3[6] = new Array(\"\");
text_array3[7] = new Array(\"\");
text_array3[8] = new Array(\"\");
text_array3[9] = new Array(\"\");
text_array3[10] = new Array(\"\");
text_array3[11] = new Array(\"\");
text_array3[12] = new Array(\"\");
text_array3[13] = new Array(\"\");
text_array3[14] = new Array(\"\");
text_array3[15] = new Array(\"Important Notice For Gift Card Below!\");
text_array3[16] = new Array(\"\");
text_array3[17] = new Array(\"\");
text_array3[18] = new Array(\"\");
text_array3[19] = new Array(\"\");
var text_array4 = new Array(num_of_cats);
text_array4[1] = new Array(\"1\");
text_array4[2] = new Array(\"1\");
text_array4[3] = new Array(\"1\");
text_array4[4] = new Array(\"1\");
text_array4[5] = new Array(\"1\");
text_array4[6] = new Array(\"1\");
text_array4[7] = new Array(\"1\");
text_array4[8] = new Array(\"1\");
text_array4[9] = new Array(\"1\");
text_array4[10] = new Array(\"1\");
text_array4[11] = new Array(\"1\");
text_array4[12] = new Array(\"1\");
text_array4[13] = new Array(\"1\");
text_array4[14] = new Array(\"1\");
text_array4[15] = new Array(\"1\");
text_array4[16] = new Array(\"1\");
text_array4[17] = new Array(\"1\");
text_array4[18] = new Array(\"1\");
text_array4[19] = new Array(\"1\");
thanks!,
Mossa