homerUK
11-09-2007, 01:17 PM
Hi guys,
I'm after a little advice. I currently have 300 records in table "metrics". These metrics are assigned to users. So each user has access to the 300 metrics. by default, my SQL will load all 300 on a page for the user.
I am now wanting the users to be able to say which they want to appear. So, out of the 300 they can tick the ones they want to see.
What's the best way of doing this?
I have thought about having a table called metrics_to_user which would store the user ID and a whole list of the metrics they choose. By default, every user would then need 300 records in this table? then they untick ones they dont want to see.
Or another way is just to store just the ones they DONT want to see. So when I am loading the page, I do some SQL to get all 300, but somehow forget the ones they dont want.
what is the best approach?!
thanks for any information :)
I'm after a little advice. I currently have 300 records in table "metrics". These metrics are assigned to users. So each user has access to the 300 metrics. by default, my SQL will load all 300 on a page for the user.
I am now wanting the users to be able to say which they want to appear. So, out of the 300 they can tick the ones they want to see.
What's the best way of doing this?
I have thought about having a table called metrics_to_user which would store the user ID and a whole list of the metrics they choose. By default, every user would then need 300 records in this table? then they untick ones they dont want to see.
Or another way is just to store just the ones they DONT want to see. So when I am loading the page, I do some SQL to get all 300, but somehow forget the ones they dont want.
what is the best approach?!
thanks for any information :)