Hi Guys,
I want to display the most recent 4 items from my db at the top, then some text, then the next 4 at the bottom.
I always write functions for things like this, can you use a negative in a limit of an sql query, i.e
function display_latest($section,$limit1)
{
$sql = "SELECT * FROM Articles WHERE Section='$section' ORDER BY id DESC LIMIT -$limit1, 4";
So the first time I would send the variable $limit1 into the function with the value
minus 4 and the second time with the value of -8, would that give me the desired items.