Well, I hate replying to posters that withdraw their question right smack dab in the middle, so here's the answer (you know who you are!) I wrote:
Well, if I understand you correctly, you're simply wondering how to use your recordset outside of the loop.
The simple answer, use a two-dimensional array:
$rows = array();
while($cols = mysql_fetch_assoc($my_result))
{
$rows[] = $cols;
}
Now, you can access 'note_id' from the 5th record via:
$current_note_id = $rows[4]['note_id'];
Of course, my code is untested. Feel free to straighten it out for your needs.