Jump to content

Sort Mysql Result


Interista

Recommended Posts

Hello,

How I can sort MySQL result .

 

I have to two selects box , Sort by alphabetical and sort by the categories , the two selects box in the same page .

How I can filter the result according of the sort type . Like sort the result by specific category and in the same time sort it from Z to A . / DESC

Link to comment
Share on other sites

Sorry for not being clear , But the problems that I face is hard to do it in the query for me .

because I want to sort result after filter it according to category type .

so as example if I have a 5 rows , and filter it using category type it will be like 3 rows as example .

How I can sort only the 3 rows not the whole result of the first query .

 

I hope it's a clear now :$

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.