5 Replies Latest reply on Nov 27, 2012 12:19 PM by kglad

    Multiple data via LoadVars

    Ron Colmen Level 2

      mySQL databse contains only 2 columns (Availability and Code). I need to send about 50 data at a time to a php file to be sent to mySQL. Basically 50 rows should be added into the mySQL database.

       

      I have no idea how should this be done? Is this agood approach? Is there a better way of getting this done?

       

      ///

      for (i=0; i<50; i++) {

      SenderLoad["dataA"+i] = _root["availability"+i].text;

      SenderLoad["dataB"+i] = _root["itemCode"+i].text;

      SenderLoad.sendAndLoad("http://www.web.com/the.php",ReceiveLoad,"POST");

      }