![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
<?php
if ($_POST['bignews'] == "Y")
{
$sqlstring="update web_news set isBignews='N' where isBignews='Y'";
$result=mysql_query($sqlstring);
}
$title = $_POST['title'];
$type = $_POST['type'];
$up_date = $_POST['up_date'];
$bignews = $_POST['bignews'];
$content = $_POST['content'];
$comefrom = $_POST['comefrom'];
//插入添加数据
$SQL_STRING = "INSERT INTO web_news(title,type,up_date,image,isBignews,content,comefrom) VALUES('$title','$type','$up_date','$img_msg','$bignews','$content','$comefrom')";
$result = mysql_query($SQL_STRING);
echo $result;
?>
输出结果为空,这是怎么回事?
--------------------------------------------------------------------
注:以下的变量可以得到值!
$title = $_POST['title'];
$type = $_POST['type'];
$up_date = $_POST['up_date'];
$bignews = $_POST['bignews'];
$content = $_POST['content'];
$comefrom = $_POST['comefrom'];

