Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching...

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
I am developing a search page right now, I need help on doing a slightly complicated select...

Basicly I have 3 tables

forumpost, thetags, usertags

Code:
forumpost

pid | psubject | pbody


Code:
thetags

tid | ttag

Code:
usertags

uxtagid | uxforumpostid


Ok basicly what I would like to do is search all forumposts, but attach "some" of the tags to that post, but the problem is that there could be many tags.... so I don't want to go overboard... I don't know how many tags would be an efficient number... so whatever you think would be decent for results.

The way my tags work is that if a user adds a tag it checks thetag database to make sure its not a duplicate, then adds a row to the usertags table joining thetags database and also usertags to the forumposts.

I am not sure how you would joing multiple columns like that or even what to search for to find out how to do it...


Thanks for the help.

Jason



Jason

[red]Army[/red] : [white]Combat Engineer[/white] : [blue]21B[/blue]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top