Jump to content

Post Checked Values To Mysql Jquery Serialize()


smithdp1

Recommended Posts

so is this close?

<?php
foreach($_POST['clientId'] as $key => $value)
{
   $clientId = mysql_real_escape_string($value);
   $campaignId = mysql_real_escape_string($_POST['campaignId'][$key]);
   $data[] = "('$clientId','$campaignId')";
}
$sql  = "INSERT INTO `campaign_to_client` (clientId,campaignId) VALUES ";
$sql .= implode(",",$data);
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.