php修改表单中的内容不成功
require_once("dbConnect.inc");
require_once("myOperation.inc");
$conn = sql_connect();
mysql_select_db("gateway_data");
$conn = sql_connect();
mysql_select_db("gateway_data");
$exec="select * from contents1 where id=".$_GET['id'];
$exec1="update contents1 set name='".$_POST['name']."',
daily_date='".$_POST['daily_date']."',
project_name='".$_POST['project_name']."',
content='".$_POST['content']."',
opinion='".$_POST['opinion']."' where id=".$_GET['id'];
$result=mysql_query($exec1);
if( $result>0)
echo "修改日报成功!" ;
else
echo "修改日报失败……";
echo "
mysql_close();
?>