I have the problem with an insert in php the rest of the models make it perfect except this one, I leave the insert code pointing to the line 72
public function Insertar($r){
try {
$sql="INSERT INTO reporte(reporte_id,reporte_ubicacion,reporte_compra,reporte_equipo,reporte_centro,reporte_observacion) VALUES(?,?,?,?,?,?)";
//linea 72 $this->pdo->prepare($sql)->execute(array(
$r->reporte_id,
$r->reporte_ubicacion,
$r->reporte_compra,
$r->reporte_equipo,
$r->reporte_centro,
$r->reporte_observacion
));
$id=$this->pdo->lastInsertId();
return $id;
} catch (Exception $e) {
die($e->getMessage());
}
}