Hello,
I have a MySQL database (named "sitefeather") which will eventually have several tables with identical structures. The structure is this:
id INT(11) NOT NULL auto_increment, site VARCHAR(1000) NOT NULL, action1 BIGINT(9) NOT NULL, action2 BIGINT(9) NOT NULL, createddatetime TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY(id), UNIQUE (site)
I would like to print a list of the 25 most recently added entries (called "site" in each table) across all tables. How can I do this with PHP?
Thanks in advance,
John
EDIT: How would I do this for a number of tables that will be variable?