I want to list database results in order of popularity, with count
I am using this code to count and sort from my database:
PHP Code:
PHP Code:
Quote:
e.g. Quote:
Thanks, |
For a start use an alias:
Code:
$qry = "SELECT entertainer, count(*) AS cnt". |
Is this not a duplicate of your original thread: http://www.linuxquestions.org/questi...nt-4175417597/
If it is, please only ask a question once and stick with it so people can follow the information. If you have new information then add it to your original query. |
Hi grail..
Sorry for the mix up. I was told, in another forum, that my post should have been in the PHP forum, not MySql. I started a new thread, thinking that it was going to be in a different forum. I then realised that this wasn't the case. However, I changed the title so that it featured PHP. I now believe that it doesn't matter. SORRY... |
The one I mentioned is in this forum so please close one and advise to follow the other.
|
All times are GMT -5. The time now is 01:31 AM. |