🙂
I have implemented a while loop and it does a "SELECT * FROM $varname" for every table.
This is working fine. It's been working perfectly since I wrote it.
What I wanted from the query was.
I have (currently) 14 tables, "dvd, news, warez, shopping, books, etc..) all with 6 fields (id, name, url, creator, date, notes) I wanted to do a query where it would check every table and return a result (with six columns) with every record createrd by a person (creator='paul g') So that I could just print the result to the screen.
I will give Alto's solution ago and see what happens but the while loop wap is easier.
Would it be better overall it I had just one table and an extra field with the category name in, so then it would just be:
"SELECT * FROM links where creator='paul g'"
???
regards,
pgudge