[eluser]brian88[/eluser]
Currently I am displaying posts ordering by likes.
1st post - 10 likes and 8 dislikes
2nd post - 8 likes and 1 dislikes
Code:
select *
from posts
order by likes desc
Is there a way to make the "2nd post" display on top of my "1st post" using some sql math or php function.
Im not totally sure on the how I want the posts to display, but if the post has almost as many likes as dislikes I want to make that post drop in rankings.