<?$w = $db->query("SELECT * FROM dd_messages WHERE to_userid='{$userid}' LIMIT 0,1");while($iw = $db->fetch_row($w)){ if($iw['status'] == 0){ echo'You have <a style="color:green; font-weight:bold; font-size:15" href="'.$domain.'/index.php?action=messages">Unread Message(s)</a>';}}?>