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
News Article List Isn't Showing?
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="kailani" data-source="post: 464337" data-attributes="member: 96235"><p>From what I saw on your screen, you are checking the same timestamp, which will obviously return 0 rows.</p><p></p><p>A dump of your PHP string (the query you run):</p><p>[CODE]SELECT * FROM cms_news WHERE published >= 1601300030 AND published <= 1601300030 ORDER BY published DESC [/CODE]</p><p></p><p>I'm not sure what code you posted to me, but I don't think that's what your actual code looks like.</p><p></p><p>[CODE]sectionCutoffMax = time();</p><p>$sectionCutoffMin = time() - 86400;[/CODE]</p><p></p><p></p><p>Which from my time() becomes</p><p>[CODE]$sectionCutoffMax = 1601390219</p><p>$sectionCutoffMin = 1601303819[/CODE]</p><p></p><p></p><p>The query (it returns your news articles):</p><p>[CODE]SELECT * FROM cms_news WHERE published >= 1601390219 AND published <= 1601303819 ORDER BY published DESC [/CODE]</p><p></p><p>Everything above is based only on the first iteration, but from my perspective, it should work with the code you posted and the data in your tables.</p></blockquote><p></p>
[QUOTE="kailani, post: 464337, member: 96235"] From what I saw on your screen, you are checking the same timestamp, which will obviously return 0 rows. A dump of your PHP string (the query you run): [CODE]SELECT * FROM cms_news WHERE published >= 1601300030 AND published <= 1601300030 ORDER BY published DESC [/CODE] I'm not sure what code you posted to me, but I don't think that's what your actual code looks like. [CODE]sectionCutoffMax = time(); $sectionCutoffMin = time() - 86400;[/CODE] Which from my time() becomes [CODE]$sectionCutoffMax = 1601390219 $sectionCutoffMin = 1601303819[/CODE] The query (it returns your news articles): [CODE]SELECT * FROM cms_news WHERE published >= 1601390219 AND published <= 1601303819 ORDER BY published DESC [/CODE] Everything above is based only on the first iteration, but from my perspective, it should work with the code you posted and the data in your tables. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
News Article List Isn't Showing?
Top