rendered paste body<? $picture = $HTTP_GET_VARS["picture"]; $isbn = $HTTP_GET_VARS["isbn"]; $author = $HTTP_GET_VARS["author"]; $title = $HTTP_GET_VARS["title"]; $type = $HTTP_GET_VARS["type"]; $blurb = $HTTP_GET_VARS["blurb"]; $picture = $HTTP_GET_VARS["picture"]; $publisher = $HTTP_GET_VARS["publisher"]; $year = $HTTP_GET_VARS["year"]; $other = $HTTP_GET_VARS["other"]; $e = $HTTP_GET_VARS["e"]; $submit = $HTTP_GET_VARS["submit"]; $query = "SELECT * FROM stb_book WHERE id = '$e'"; $result = mysql_query($query, $db); if ($submit){ $query = "UPDATE stb_book SET isbn = '$isbn' WHERE id = '$e'"; mysql_query($query, $db); } else { while($row = mysql_fetch_object($result)){?> <form action="?e=<? print $e; ?>" method="get"> <input type="hidden" name="e" value="<? print $row->id; ?>" /> <input type="hidden" name="submit" /> Image: <input type="text" value="<? print $row->picture; ?>" size="20" name="picture" id="picture" /><br /> ISBN: <input type="text" value="<? print $row->isbn; ?>" size="20" name="isbn" /><br /> Author: <input type="text" value="<? print $row->author; ?>" size="20" name="author" id="author" /><br /> Title: <input type="text" value="<? print $row->title; ?>" size="20" name="title" /><br /> Fiction, Non-Fiction or Cookbook: <input type="text" value="<? print $row->type; ?>" size="20" name="type" /><br /> Blurb: <input type="text" value="<? print $row->blurb; ?>" size="20" name="blurb" /><br /> Price: <input type="text" value="<? print $row->price; ?>" size="20" name="price" /><br /> Publisher: <input type="text" value="<? print $row->publisher; ?>" size="20" name="publisher" /><br /> Year: <input type="text" value="<? print $row->year; ?>" size="20" name="year" /><br /> Other info: <input type="text" value="<? print $row->other; ?>" size="20" name="other" /><br /> <input type="submit" value="Edit" /> </form><? } }?>