views:

35

answers:

1

I always used the loop method to get all records from resource received from mysql_query(), but I wonder is there a easier way to accomplish this task?

e.g.:

SELECT table_schema, table_name FROM information_schema.tables;

I suppose it should either way return more, than just one record.

Question is short, but I think I explained myself quite well.

+1  A: 

No, the common way is to use a loop which gets one row at a time.

Sjoerd