Wouldn't be MUCH easier to just ask for the data you want in the order you want in your query and not have to worry about diddling with arrays? For example: SELECT f1, f2, f3, ... fx FROM myTable -- Gives you the same as SELECT * SELECT fx, fy, f3, f1, f2 FROM myTable -- Gives you back the fields in the specified order Just my two cents' worth len morgan