To make explaining easier, assume that we are dealing with the 'title' field. In my directory many links have the same title, and on one page I would like to display how many pages with the same title there are, like "title 1" (xx times), "title 2" (xx times). Is there any way to easily display that with available variables?
I know I could do this with PHP/mySQL code, but I don't even wanna think about the mess when that code has to be processed 300 times
The only way to determine that is a query, and so you'd have to add a field and go through the spots where links are added or their titles could be changed (just the add and update functions of the class should do it actually) and put in the query to update that field with the proper value.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Counting links with certain field value
Forum Regular
Usergroup: Customer
Joined: May 11, 2003
Total Topics: 64
Total Comments: 199
Okay, I can't get my head around this:
To make explaining easier, assume that we are dealing with the 'title' field. In my directory many links have the same title, and on one page I would like to display how many pages with the same title there are, like "title 1" (xx times), "title 2" (xx times). Is there any way to easily display that with available variables?
I know I could do this with PHP/mySQL code, but I don't even wanna think about the mess when that code has to be processed 300 times
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The only way to determine that is a query, and so you'd have to add a field and go through the spots where links are added or their titles could be changed (just the add and update functions of the class should do it actually) and put in the query to update that field with the proper value.