I have done the task with DBCommand().
Code:
  
$SQLQuery = "Select Field from table"
$Array = DBCommand($String,$SQLQuery)
For $i=0 to Ubound($Array)
? $Array[$i]
Next



Hope it helps.
_________________________
Life is fine.