Jack 老大帮忙啊!
- 代码: 全选
<?php
$mysqli = new mysqli("localhost","root","");
$mysqli->select_db("ej2zencart64");
if($mysqli->errno == 0) //判断当前连接是否成功
{
$id = $_POST['type'];
$content = $_POST['content'];
if($id==-1||$id==""){
echo "<script>alert('Please select Paypal Help Type!');history.go (-1);</script>";
}
else
{
$sql = "UPDATE zen_payHelp set content = '$content' where id = '$id'";
$result = $mysqli->query($sql);
echo "<script>history.go (-1);</script>";
}
}
else
{
echo $mysqli->error; //输出当前错误信息
exit();
}
?>




News