Hello everyone,
I'm working on a website that uses a content management system of my creation. The articles posted must be ordered by date/time and must use pages (10 articles per page). I have one problem, my MySQL query is:
$query = mysql_query("select * from stories where id between $page_min and $page_max order by date desc, time desc");
Now, I know WHY it isn't "ordering right". Techincally, it IS ordering right, but it's only ordering the stories between $page_min and $page_max. I can't think of a solution, I need to order ALL the articles by date and time, and THEN run the BETWEEN statement. Does anyone have any ideas?