is this for SOD?

Originally Posted by
http://us2.php.net/mysql_fetch_field
field_offset
The numerical field offset. If the field offset is not specified, the next field that was not yet retrieved by this function is retrieved. The field_offset starts at 0.
try this code:
PHP Code:
function fetch_field($query_id = 0, $field_offset = NULL)
{
return ($query_id) ? @mysql_fetch_field($query_id, $field_offset) : false;
}
that should make it so if you don't pass a second variable to fetch_field, then it should act like there's no second value, but if you do pass a number, then it would work that way too.
the return line is actually an if else conditional. since query id = 0 by default, if there's nothing sent, it will return false in the conditional, thus not executing the mysql function.
Remember, if this works for you, then please add REP. It's not hard ;)