I'm trying to insert several rows in the same query
Details: I have several fields in the table, and only one field would have to be different in each row, the other fields would be identical in each row.
This is the code I have. but I do not seem to be on the right track.
$insertar = mysqli_query ($link,"INSERT INTO temporal8
(articulo,fraccion,inciso,nombre,nombreDoc,ano,departamento,rango,nuevafecha,consecutivo,mes,destino,id)
VALUES ('$articulo', '$fraccion', '$inciso', '$nombre', '$nombreDoc', '$ano', ('ALUMBRADO','CATASTRO','COMPRAS'), '$rango', '$nuevafecha', '$consecutivo', '$mes', '$destino', NULL)")
or die("fallo al insertar los primeros datos: ".mysqli_error($link));
In the Field "departamento"
I try to insert the different values. Or I generate 3 rows with repeated values except the field "departamento"