PHP如何进行高效数据库操作?
- 内容介绍
- 文章标签
- 相关推荐
本文共计273个文字,预计阅读时间需要2分钟。
plaintext脚本内容简化如下:
将请求参数插入数据库if ($action=='edit_shop') { $arr=$_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; } ?>
本文共计273个文字,预计阅读时间需要2分钟。
plaintext脚本内容简化如下:
将请求参数插入数据库if ($action=='edit_shop') { $arr=$_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; } ?>

