So i`m trying to create one of those page navigation ( Next Last Page 1,2,3,4,5,6,7) i`m recieving "You have an error in your SQL syntax near '0, 10' at line 1" error message.
$query_news = "SELECT id, headline, content, date_format(date, '%c-%d-%y') as 'date_f' FROM news WHERE date <= $today2 ORDER by date DESC ";
$query_limit_news = sprintf("%s LIMIT %d, %d", $query_news, $startRow_news, $maxRows_news);
since you duplicate the LIMIT clause
__________________ onPHP5.com - PHP5: Articles, News, Tutorials, Interviews, Software and more