What’s a good and simple way to select from multiple tables and just order everything by date, newest to oldest?
mysql_query("
SELECT *
FROM posts, comments, photos
WHERE userID='$session'
ORDER BY date");
if I wanted to do something like that.
-> http://dev.mysql.com/doc/refman/5.0/en/union.html