public static function giveAuthor($id) { $db = new Conn(); if ($id == '0') { return 'Anonymous'; } else { $author = mysql_fetch_array($db->db_query("SELECT username FROM members WHERE id='{$id}'")); return $author['username']; } }