View Single Post
  #2 (permalink)  
Old 06-16-2009, 06:43 AM
grim1208 grim1208 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 13
grim1208 is on a distinguished road
Send a message via AIM to grim1208 Send a message via MSN to grim1208 Send a message via Skype™ to grim1208
are you familiar with php? if so perhaps this will help

Code:
//page form gets submitted to after checkbox select
#db connections la la
$customerId = $db['customerId'];
$numItems = count($_POST);
$customerPurchase = array();

for($i=0;$i<=$numItems;$i++)
{
  $data = $customerId + " " + $_POST[$i] + ",";
  array_push($customerPurchase, $data)  ;
}

#php & mysql code to inset $customerPurchase into whatever table la la
I typed this out on the fly without php localhost from friends computer, hope this helps

cheers

grim
newgameprojects.net
Reply With Quote