4
Hmmm ...
I don't see any reason why mysql_fetch_array would work and $xoopsDB->fetchArray wouldn't, unless your PHP version is < 4.0.3.
$xoopsDB->fetchArray simply calls mysql_fetch_assoc, which is equivalent to calling mysql_fetch_array with MYSQL_ASSOC for the optional second parameter. Since you're only accessing the return value as an associative array, that should work ok.
mysql_fetch_assoc requires PHP >= 4.0.3, but that's a pretty old version.
Another possibility, I guess, is that the variable $opt was already being used, and your overwriting it messed that up.