Ver original1. $SQL = "INSERT INTO personas(NOMBRE,DNI) VALUES".implode(',',$tmpSQL); // ACOMODO EL ARRAY CREADO ANTERIORMENTE EN LA CADENA SQL FINAL