二维数组循环将用户信息插入到数据库
foreach($_POST['et_name'] as $k1=>$vo1){ foreach($_POST['et_idcade'] as $k2=>$vo2){ if($k1==$k2){ $arr[$k1]['name'...
foreach($_POST['et_name'] as $k1=>$vo1){ foreach($_POST['et_idcade'] as $k2=>$vo2){ if($k1==$k2){ $arr[$k1]['name'...
PDO实现数据库的增删改查 //链接数据库 $pdo = new PDO('mysql:host=localhost;dbname=test','root','root'); //增 $res = $pdo->exec("insert...