rendered paste bodyif( is_array($_POST['activeJob']) ) {
$activeJob = $_POST['activeJob'];
echo "<pre>"; var_dump($activeJob); echo "</pre>";
for($i = 0; $i < sizeof($activeJob); $i++ ) {
$sql = "INSERT INTO clients_access (user_id, jobNumber, clientCode)
VALUES ('".$this->user."', '".$activeJob[$i]."', '".$this->clientCode."')";
echo $sql."<br /";
}
}
-------
OUTPUT:
array(2) {
[0]=>
string(4) "6566"
[1]=>
string(4) "1234"
}
INSERT INTO clients_access (user_id, jobNumber, clientCode) VALUES ('39', '6566', 'FIV')