Is possible to make query to get first 3 comments ORDER BY rating, and rest of comments by timestamp?
Im using simple query to get comments on my script, and i sort it by timestamp, here is example
mysql_query("SELECT * FROM comments WHERE content = '$id' AND approved='1' AND parent_id ='0' ORDER BY timestamp DESC");
by default all comments have 0 rating in database
ORDER BY rating DESC LIMIT 3and then taking the ids of those and throwing them intoWHERE id NOT IN (1, 2, 3) ORDER BY timestamp DESC? You would have to have two separate queries, but since you're doing this in PHP, that should be simple.