gaogier Posted February 21, 2010 Share Posted February 21, 2010 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] Quote Link to comment https://forums.phpfreaks.com/topic/192780-cant-view-all-news-any-ideas-how-to-fix/ Share on other sites More sharing options...
ram4nd Posted February 21, 2010 Share Posted February 21, 2010 You really have to describe better. No code no answer. This is probably some CMS and if it doesn't work you have to ask from the guys who made it. Quote Link to comment https://forums.phpfreaks.com/topic/192780-cant-view-all-news-any-ideas-how-to-fix/#findComment-1015587 Share on other sites More sharing options...
mattal999 Posted February 21, 2010 Share Posted February 21, 2010 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 } Quote Link to comment https://forums.phpfreaks.com/topic/192780-cant-view-all-news-any-ideas-how-to-fix/#findComment-1015589 Share on other sites More sharing options...
gaogier Posted February 21, 2010 Author Share Posted February 21, 2010 You really have to describe better. No code no answer. This is probably some CMS and if it doesn't work you have to ask from the guys who made it. IT is an attachment in the first post. Any ideas on how to fix this? Quote Link to comment https://forums.phpfreaks.com/topic/192780-cant-view-all-news-any-ideas-how-to-fix/#findComment-1015662 Share on other sites More sharing options...
ram4nd Posted February 22, 2010 Share Posted February 22, 2010 ok, i just didn't think that someone would put code in pdf file have you tried setting $all to 1 like mentioned above Quote Link to comment https://forums.phpfreaks.com/topic/192780-cant-view-all-news-any-ideas-how-to-fix/#findComment-1016047 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.