mysql_fetch_value($value, $query) { return(mysql_fetch_array(mysql_query($query))["$value"]); }