So, I should virtually join all the tables and then get of these the 10 tables with the most recent date.
The problem is that I'm able to do this, but just on one table:
Expand|Select|Wrap|Line Numbers
- require("db/db.php");
- $lastinserted=mysql_query("SELECT img,link,numclick,description,order FROM $table1 ORDER BY date DESC, order LIMIT 0,1",$link);
- while ($row=mysql_fetch_array($lastinserted,MYSQL_NUM)) {
- printf("<div class='grid_8'><div class='screen'>%s</div><div class='text'><h2>%s<span class='visite'> - %s visite</span></h2> %s</div></div>", $row[0], $row[1], $row[2], $row[3]);
- }
- mysql_free_result($lastinserted);
- mysql_close($link);
some advice?
thanks a lot