Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
REVCMS NEWS PAGE
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 431578" data-attributes="member: 36373"><p>It may be already setting it to</p><p>[CODE]<?php</p><p></p><p> If(mysql_num_rows(mysql_query("SELECT null FROM cms_news where ID = "'.filter($_GET['id']).'" LIMIT 1") == 0){</p><p> $nextId = mysql_fetch_assoc(mysql_query("SELECT `id` FROM cms_news ORDER BY `id` DESC LIMIT 1"));</p><p>header('Location: /news/'.$nextId['id'].');</p><p>}</p><p></p><p></p><p></p><p>?>[/CODE]</p><p>1 inside the class.forms.template or whatever file under app and news article 1 doesn't exist. You will have to add code that selects the newest article and take them to that article instead of article 1. Pseudo code:</p></blockquote><p></p>
[QUOTE="JayC, post: 431578, member: 36373"] It may be already setting it to [CODE]<?php If(mysql_num_rows(mysql_query("SELECT null FROM cms_news where ID = "'.filter($_GET['id']).'" LIMIT 1") == 0){ $nextId = mysql_fetch_assoc(mysql_query("SELECT `id` FROM cms_news ORDER BY `id` DESC LIMIT 1")); header('Location: /news/'.$nextId['id'].'); } ?>[/CODE] 1 inside the class.forms.template or whatever file under app and news article 1 doesn't exist. You will have to add code that selects the newest article and take them to that article instead of article 1. Pseudo code: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
REVCMS NEWS PAGE
Top