Usually when you do a fetch_array, you are looking to get more than one line back from the query, otherwise you would do a query_first. Are you trying to get one thing back or many? If many, you should put your fetch_array in a while loop (you can do a search on 'fetch_array' in the vb code and you'll find many examples).