Hello , im using mysql_fetch_assoc , which ive never used before , im used to using mysql_fetch_array
Im trying to get data out of the following
$result = mysql_query("SELECT `note_id`, `to`, `from`, `time` FROM `shocc_notes` WHERE `to` = '" . $_SESSION['username'] . "'") or die(mysql_error());
if (mysql_num_rows($result)) {
while ($row = mysql_fetch_assoc($result)) {$notes[] = $row;}
Id like to be able to assign the note_id 's to a variable
i have tried $notes['note_id'];
also $notes[0] returns no data
When i do a print_r , i see the data in the array , any clue how to pull it outta their and assign it to variables ..