首先,我很抱歉问题标题没有解释太多,我是 PHP 新手,很难说出这个问题,因为我什至不确定什么是错的。
这是PHP
<?php
include 'includes/connection.php';
$pName = $_POST['pName'];
$pAuth = $_POST['pAuth'];
$pCon = $_POST['pCon'];
$Page = $_POST['Page'];
$id = $_POST['id'];
$update = "UPDATE content SET POST_TITLE = '$pname(pname)',POST_AUTHOR = '$pauth(pauth)',POST_CONTENT = '$pcon(pcon)',PAGE = '$page(page) WHERE ID = '$id[id]'";
$result = mysql_query($update) or die (mysql_error());
Header("Location:admin.php?refer=editsuccess");
?>
和错误,
Notice: Undefined index: pauth in C:\xampp\htdocs\cms\editp.php on line 5
Warning: Illegal string offset 'id' in C:\xampp\htdocs\cms\editp.php on line 10
感谢您的任何帮助