Jump to content

Can't view all news, any ideas how to fix?


gaogier

Recommended Posts

Hello

 

I am trying to post, but can't so please bare with me.

 

 

Every time I post, it says, The following error or errors occurred while posting this message:

The message body was left empty.

 

I have attached the code as a PDF.

 

I am having problems viewing all news, found here, http://runehints.com at the bottom of the news, you will see the view all news dose not work.

 

However, if you go here, http://www.runehints.com/oldestindex.php Our very old design I dug out, works fine.

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/192780-cant-view-all-news-any-ideas-how-to-fix/
Share on other sites

Well I'm pretty sure it's this section of the code, but I don't quite understand what's wrong. Basically, if you have set $all to 0, then it will grab the newest 7 articles, but if you set $all to 1, then it will grab them all.

 

$all = 1; // Want all the topics - If not, set $all = 0;
if ($all == 0) {
$topic_query = "SELECT * FROM `phpbb_topics` WHERE `forum_id`=
'63' ORDER BY `topic_time` DESC LIMIT 7"; // do topic query
}else{
$topic_query = "SELECT * FROM `phpbb_topics` WHERE `forum_id`=
'63' ORDER BY `topic_time` DESC"; // do topic query
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.