I started reading this tutorial about how to make a simple news management script with php and mysql. I'm new to all this php related stuff.. so could one of you guys help me with some errors? I have this file called edit_process.php where I'm supposed to modifiy the news that I added. So I open the page and there I find beautiful errors which I tried to fix, but failed :\ Here's the error; [b]Notice: Undefined index: id in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 7 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 9[/b] Here's the code; [b]<?php include "config.php"; $db = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); $query = "SELECT title, news FROM news WHERE id = $_GET[id]"; $result = mysql_query($query); while($r=mysql_fetch_array($result)) { $title=$r["title"]; $news=$r["news"]; echo "<form name='edit_process.php' method='post' action='edit_save.php?id=$_GET[id]'> <p>Title : <input type='text' name='title' value='$title'> </p> <p>News :</p> <p> <textarea name='news' cols='40' rows='6'>$news</textarea> </p> <p> <input type='submit' name='Submit' value='Save'> </p> </form>"; } mysql_close($db); ?> [/b] Sincerely, anigma