![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
New to the CF scene Join Date: Feb 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
Get the most frequent field
Hello!
I have a database where I insert fields from a form. These fields are like: enterprise, adress, date of question, date of answer and question theme. I choose this "question theme" from a list box and they are always the same (arround 15). I now wanted to list the most frequent "question theme" of the month. Does anybody have an idea? Thanks |
|
|
|
|
|
PM User | #2 |
|
New Coder ![]() Join Date: Feb 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
if question_theme is an integer value say everytime someone posts a question theme, it increases the count by 1 then you can list all rows order by question theme DESC
however if question_theme is text you could do a num_rows query where question_theme LIKE '%$yourpost%' so it does a search for the most similar matches related to question theme |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|