gistfile1.txt $_REQUEST['site'] ,'location' =$_REQUEST['location'],'tel' =$_REQUEST['tel'],'time' =$_REQUEST['time'],'latitude' =$lng,'longitude' =$lat);echo insert('dede_wx_shop', $arr);exit;}if($action=='edit_shop'){$arr = array($_POST['n
$_REQUEST['site'] ,
'location' =>$_REQUEST['location'],
'tel' =>$_REQUEST['tel'],
'time' =>$_REQUEST['time'],
'latitude' =>$lng,
'longitude' =>$lat
);
echo insert('dede_wx_shop', $arr);
exit;
}
if($action=='edit_shop'){
$arr = array($_POST['name'] =>$_POST['val']);
echo update('dede_wx_shop', $arr,'id='.$_POST["id"]);
exit;
}
?>
