<?php include('header.php');
include('config.php');
if (isset($_POST['submit']))
{
$link1=mysqli_real_escape_string($cone,$_POST['link1']);
$link2=mysqli_real_escape_string($cone,$_POST['link2']);
$link3=mysqli_real_escape_string($cone,$_POST['link3']);
$link4=mysqli_real_escape_string($cone,$_POST['link4']);
$link5=mysqli_real_escape_string($cone,$_POST['link5']);
$sql = "update path set 1='hello' where id=1";
if (mysqli_query($cone,$sql))
{
header("location:section_6.php?done");
}
}
?>
我在这里做错了什么? Cone变量在config.php中定义,但我无法使更新正常工作且没有错误。