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
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
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.