MYSQL 写入错误讯息
<br />$value = array ();<br /><br />foreach ($all as $cust) {<br /> $value[] = " ('{$cust['id']}', '{$cust['last']}') ";<br />}<br /> <br />echo $query = " insert into cust (cust_id,last) values ". implode(", ", $value);<br />$db->query($query);<br />
$value = array ();<br /> <br />foreach ($all as $cust) {<br /> $value[] = " ('{$cust['id']}', '{$cust['last']}') ";<br />}<br /> <br />echo $query = " insert into cust (cust_id,last) values ". implode(", ", $value);