您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

简单post数据保存代码

2024/4/22 17:48:05发布16次查看
是获取表单的数据再用update更新到mysql教程数据库教程
if( $_post )
{
 $cid = postget('cid',1);
 $address = postget('address',1);
 $sql = update cn_loupan_city set address='$address' where id='$cid';
 $db = new db();
 if( $db->query( $sql ))
 {
  message('修改成功');
 }
 else
 {
  message('操作失败,稍后再试!');
 }
 unset( $db );
}
  =iconv('gb2312', 'utf-8', $row['address']); ?>
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product