//INSERT INTO 'user' VALUES (null,'管理学院','14初教1','初等教育','陈娇','201420006','420624199604080025','女');
foreach ($data as $k => $v1) {
if($k==0)continue;
$j=0;
$max=7;
$s_sql = "INSERT INTO '".$table."' ";
$s_sql .= "VALUES (".'null,';
foreach ($v1 as $k => $v) {
if($k==$max) break;
$j++;
if($v=='"'||$v==""){
}
else{
$s_sql .= "'".$v."'";
if($j<$max) {
$s_sql .= ",";
}
}
}
$s_sql .= ');';
echo $s_sql."<br>";
筑梦之路