caipin/caipinmodify_do.php

(完整代码) 842B


<?php
include("../data.php");
$cpmc=$_POST[cpmc];//菜品名称
	$fl=$_POST[fl];//分类
	$kw=$_POST[kw];//口味
	$sp=$_POST[sp];//水平
	$cx=$_POST[cx];//菜系
	$dj=$_POST[dj];//单价
	$tp=$_POST[tp];//图片
	$js=$_POST[js];//介绍
	$ts=$_POST[ts];//特色
	$sm=$_POST[sm];//说明
	
$keyid=$_POST["keyid"];
$sql="update caipin set  cpmc='".$cpmc."',fl='".$fl."',kw='".$kw."',sp='".$sp."',cx='".$cx."',dj='".$dj."',tp='".$tp."',js='".$js."',ts='".$ts."',sm='".$sm."'  where cpid='".$keyid."'";
//echo $sql;
if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  ?>
    <script language="javascript">
	alert("操作失败!");
  window.history.go(-1);
  
  </script>
  <?
  }
  mysql_close($con);
  ?>
  <script language="javascript">
  	alert("操作成功!");
  window.location="caipinlist.php";

  </script>
  <?



?>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。