Sorting in descending order in SQL
Descending
"select * from $dealtable where user_id='$uid' AND status='$status' ORDER BY ID DESC"
Ascending
"select * from $dealtable where user_id='$uid' AND status='$status' ORDER BY ID ASC"
We provide knowledgeable blogs related to php, jQuery, html, css, wordpress, woocommerce, cordova app with examples in 2021.
Comments
Post a Comment