$conn = mysql_connect("localhost","root","123");/*数据库*/
mysql_query("set names GB2312");
$db = mysql_select_db("miaolaor");
$sql="SELECT * FROM news_listing where news_Id='$_GET[AId]'";
$query=mysql_query($sql);
if($_POST['Submit'])
$sql="update news_listing set news_headline='$_POST[news_headline]',news_intro='$_POST[news_intro]',content='$_POST[content]' where news_Id ='$_POST[AId]'";
//$sql = 'UPDATE `news_listing` SET `news_headline` = '$news_headline', `news_intro` = '$news_intro', `content` = '$content' WHERE `news_listing`.`news_Id` = '$news_Id 「 ;」;
mysql_query($sql);//执行sql语句
if($sql){
echo "修正成功";
echo "戻り";
}else{
echo "修正失败";
echo "戻り";
}
//echo $sql;
?>
mysql_query($sql) or die(mysql_error());//执行sq l 语句
取SQL 语句をデータベース库执行就知道了
変更
if(isset($_POST["submit"])
试试
示唆何を么错误了吗?