时间:2021-07-01 10:21:17 帮助过:26人阅读
$value = array ();
foreach ($all as $cust) {
$value[] = " ('{$cust['id']}', '{$cust['last']}') ";
}
echo $query = " insert into cust (cust_id,last) values ". implode(", ", $value);
$db->query($query);
$value = array ();
foreach ($all as $cust) {
$value[] = " ('{$cust['id']}', '{$cust['last']}') ";
}
echo $query = " insert into cust (cust_id,last) values ". implode(", ", $value);