麻烦帮我看看,研究了很长时间没弄出来、
代码如下<form action="dealmodifynews.php" method="post">
<?php
include "../../config/db.php";
$id=$_GET['id'];
$sql="select * from `news` where `id`=$id";
$result=mysql_query($sql);
$arrn=mysql_fetch_array($result);
mysql_close();
?>
标题:<input type="text" name="title" value="<?php echo $arrn['title']; ?>"><br/>
内容:<textarea name="content" cols=50 rows=20><?php echo $arrn["content"]; ?></textarea><br/>
<input type="submit" value="修改">
<input type="hidden"name="id" value="<?php echo $id; ?>">
</form>
在浏览器中输入http://localhost/soft/admin/news/modifynews.php
总是有一个Notice: Undefined index: id in C:\wamp\www\soft\admin\news\modifynews.php on line 4
和Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\soft\admin\news\modifynews.php on line 9