I have this query:
$consulta = $this->db->consulta("INSERT INTO prestamo_equipo (id_equipo, id_usuario, fecha_devolucion) VALUES $valor ");
where $valor- ('1', '75', 'xs', '2015-12-14'),('1', '75', 'xs', '2015-12-14').
$id = $this->db->getInsertId($consulta);
this last line, return only the first insert identifier, but not the other, I need the identifier of the two inserts.
source
share