Welcome Guest, Not a member yet? Register   Sign In
Implemening a tagging technique.
#1

[eluser]Unknown[/eluser]
Hello.
i am developing an application where a user could write a post with some tags. Then Other users comes and up voting these posts.

i have made the design for the tables as many-to-many relationship between tags and posts then the mapping table is called posts_have_tags..

until here everything is fine.

my question is : i want the application to check if the tags entered by user are already in the tags table or insert them. and if they were in the table just get their ids and insert them in the middle table. if they are not i would insert them to the tags table then get the insert id then post it to the middle table.

am i correct here ?

what is the easiest way to do it with CI.

thx.




Theme © iAndrew 2016 - Forum software by © MyBB