0) { $tmp = mysql_fetch_array($result); return $tmp[0]; } return NULL; }