Salve, ho una tabella chiamata mybb_forums e vorrei ottenere tutti i record del campo 'fid' in un array.

QUindi ho provato così:

Codice PHP:
mysql_fetch_array(mysql_query("SELECT fid FROM mybb_forums")); 
Ma il risultato è:

array([0] => "1", [fid] => "1")

mentre a me servirebbe in questo modo:

array([0] => "1", [1] => "2", [2] => "3", [3] => "4")

Ovviamente 1, 2, 3, 4 sono i veri record del campo forums. Per evitare ogni dubbio, mi serve in modo da poterlo usare come pattern nella funzione in_array