How to sort results from a custom database table

Don’t you mean this query:

"SELECT post_id FROM like WHERE user_id = %d ORDER BY id DESC"

where we assume that the id column is unique and increase with each like.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)