时间:2021-07-01 10:21:17 帮助过:6人阅读
正常
不正常
header("Content-type: text/html; charset=utf-8");
require ('common.php');
$hh=$_POST['hao1'];
$aa=$_POST['bh'];
$bb=$_POST['xm'];
$cc=$_POST['fangfa'];
$dd=$_POST['biaozhun'];
$_gh=$_COOKIE["name"];
$_time=$_POST['time'];
$name=implode(_fetch_array_list(mysql_query("SELECT name FROM jsy WHERE gonghao = $_gh")));
if (is_array($aa)){
foreach ($aa as $i=>$v){
mysql_query("INSERT INTO djjl (hao,bh,xm,fangfa,biaozhun,gonghao,name,time,zt) VALUES (
'$hh',
'$v',
'{$bb[$i]}',
'{$cc[$i]}',
'{$dd[$i]}',
'$_gh',
'$name',
'$_time'
)" )or die('SQL执行失败!'.mysql_error());}}
mysql_close();
_alert_location('添加成功!','ksdj.php');
?>