I was about to write that it should work, and then I realized that there is a difference: There's a second parameter to mysql_fetch_array() which tells what kind of index to return, and the default is both column names and integers (MYSQL_BOTH). The vbulletin fetch_array also has that parameter but the default is DBARRAY_ASSOC (which is set to MYSQL_ASSOC). So if you're using the integers, you'd want to pass DBARRAY_NUM or DBARRAY_BOTH as the second parameter.
Did someone ask about this somewhere else (or maybe you under a different name)? I saw a similar question earlier today, and I just realized that this is probably the answer to that one too.
|