当前位置 : 主页 > 网络编程 > PHP >

php数据库操作

来源:互联网 收集:自由互联 发布时间:2021-06-28
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
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['name'] =>$_POST['val']);
	echo update('dede_wx_shop', $arr,'id='.$_POST["id"]);	
	exit;
}












?>
上一篇:增删查改
下一篇:红包随机金额
网友评论