php页面 sql修改语句怎么写?
$id=$_POST['id'];$ming=$_POST['ming'];$mima=md5_pwd($_POST['mima']);$dizi=$_POST['diz...
$id = $_POST['id'];
$ming = $_POST['ming'];
$mima = md5_pwd($_POST['mima']);
$dizi = $_POST['dizi'];
$cid = $_POST['cid'];
$sql = "UPDATE `JPNG` SET `ZH_name`=`$ming`,`ZH_mima`=`$mima`,`ZH_cid`=`$cid` WHERE `ZH_id`=$id";
$coco = mysql_query($sql);
if ($coco) {
go("修改成功","./YHxx.php");
} else {
back("修改失败");
} 展开
$ming = $_POST['ming'];
$mima = md5_pwd($_POST['mima']);
$dizi = $_POST['dizi'];
$cid = $_POST['cid'];
$sql = "UPDATE `JPNG` SET `ZH_name`=`$ming`,`ZH_mima`=`$mima`,`ZH_cid`=`$cid` WHERE `ZH_id`=$id";
$coco = mysql_query($sql);
if ($coco) {
go("修改成功","./YHxx.php");
} else {
back("修改失败");
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询