Friends I need help with a code ... I'm trying to modify a news template in php and I get this error, and I can not fix that I leave the message and the code.
Warning: Division by zero in ... on line 89 Something is wrong in your query syntax.
$num_news = $mysql->num_rows();
$num_pages = ceil($num_news / $news_per_page);
if ($_GET['page'] != 1)
thanks.