这些是我的数据库上的字段
partamento int
codigocurso int
diurno int
contacto int
pos_laboral int
contacto2 int
proc_por int
从昨天开始我一直在尝试修复这个错误,但我无法弄清楚错误在哪里。**
foreach ($diurno as $userId) {
$data .= "(".$id.",".$grdid.",".$userId.",".$contacto.",".$pos_laboral.",".$contacto2.",".$idd.")";
}
$data = rtrim($data, ',');
$sql = "insert into cursosprogramas (departamento, codigocurso, diurno, contacto, pos_laboral, contacto2, proc_por) values (".$data.");";
echo $sql;
错误
插入cursosprogramas(department, codigocurso, daytime, contact, pos_laboral, contacto2, proc_por)values((100,120,7,646,5,363,2)(100,120,4,646,5,363,2));查询失败。
扬帆大鱼
牛魔王的故事