snowboardr
Programmer
How do i do a count of how many records are tagged under one tag?
SELECT DISTINCT ut.uxtagid, ut.uuserid, ut.uprivate, tt.tid, tt.ttag, tt.trated FROM usertags ut, thetags tt WHERE ut.uuserid=1 AND ut.uxtagid=tt.tid ORDER by tt.ttag
"thetags" contains the actual tag name like this:
tid, ttag
"usertags" when a user tags a record its stored here, and the records here are linked to the tag name
uuserid = the user who tagged it
uxtagid = is joining the "thetag" table to identify the name of the tag
uxforumpostid = the record that is being tagged
Thanks for your help
Jason
Jason
[red]Army[/red] : [white]Combat Engineer[/white] : [blue]21B[/blue]
SELECT DISTINCT ut.uxtagid, ut.uuserid, ut.uprivate, tt.tid, tt.ttag, tt.trated FROM usertags ut, thetags tt WHERE ut.uuserid=1 AND ut.uxtagid=tt.tid ORDER by tt.ttag
"thetags" contains the actual tag name like this:
tid, ttag
"usertags" when a user tags a record its stored here, and the records here are linked to the tag name
uuserid = the user who tagged it
uxtagid = is joining the "thetag" table to identify the name of the tag
uxforumpostid = the record that is being tagged
Thanks for your help
Jason
Jason
[red]Army[/red] : [white]Combat Engineer[/white] : [blue]21B[/blue]