$notes = @mysql_query("SELECT id, date, note FROM `notes` ORDER by DATE, ID DESC LIMIT 1"); if($notes) { $note = mysql_fetch_row($notes);@mysql_free_result($notes); } if (!isset($_COOKIE['dismiss-note']) || $_COOKIE['dismiss-note'] !== $note["0"]) { echo '