you're not using your GET data (?id=1, ?id=2). you're telling MySQL that you want all the rows.
modify your SQL statement like this:
$sql = "SELECT id, nid, notes, html FROM $table_name WHERE id=".$HTTP_GET_VARS['id'];
you could use $id instead of $HTTP_GET_VARS['id'], but i see you're using $id somewhere else, so to be safe, I always use the GET & POST arrays.
this SQL statement will only grab that one ID that you have as GET data.
i assume column "id" is an integer, not a string - cause you'd need quotes around it if it were a string.
hope this is what you were lookin for
blake_caldwell
Pluginbox.com