错误if($ _请求['操作'] =="更新")on mysqli

时间:2015-04-07 03:19:31

标签: mysqli

我收到此错误:

Notice: Undefined index: action in update.php on line 39

第39行如下:

<?php
if($_REQUEST['action']=="update")
{
    $query='update ckeditor_content set des="'.escape_string($_POST['ckeditor_content']).'" where id="'.escape_string($_POST['id']).'"';
    mysqli_query($con,$query);
    //echo $query;
    header("location:../welcome_content/");
}

$query="select * from ckeditor_content where id=$_REQUEST[id]";
$row=mysqli_fetch_array(mysqli_query($con,$query));
?>
任何人都可以帮忙。我在这里停留了大约两个星期......

0 个答案:

没有答案