Make sure show result at top of list if replyto ==0 |
On my view thread I can get the posts for this thread how ever.
Question: How am I able to make sure the if the post has result['replyto'] == 0 Then will all ways be first on list PHP Code: public function getposts($thread_id, $limit, $offset) PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
Use order_by on your replyto after your where cause
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |