$row_count = mysql_num_rows(mysql_query("SELECT id FROM en_news"))-10;
$query= "SELECT id,date,title FROM en_news LIMIT $row_count ,10";
Above is the solution of the first part of the question but I want the last entry to display first. I tried:
Code:
$query= "SELECT id,date,title FROM en_news ORDER BY id DESC LIMIT $row_count ,10";
But this counts backwards from the 10th to last entry. I could put the data into an array and display it backwards but I'm sure there is a sql statement to help me do this? Its hurting my little brain. Any ideas?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.