Meaning what exactly? This query will return all of the rows in the table. For specifiying a criteria, you have to put it into your SQL query, like:
SELECT * FROM ticket WHERE customer NOT IN(3,4,5) ORDER BY t_id
That would return any row where customer (assuming there is a field with that name) is not 3,4, or 5
As for odbc_fetch_row, i suppose it will work OK as long as the SQL is well-built.
I hope this is your question. Post ALL of the code for more answers (especially that with the odbc_fetch_row() function)
Hope this helps
fLIPIS