Pedestrian Posted July 7, 2009 Share Posted July 7, 2009 I'm very new to php/mysql so I apologize if this question is not top-notch: I'm working on a computer conferencing environment, and so far, I can let users post notes. But I want them to be able to tag notes. Do you have any resources I could look into? I want to read up on how I could do something like that - tag notes that is. I'm sorry for asking such a primitive question! But I thought this forum might help me get started. ~P Link to comment https://forums.phpfreaks.com/topic/165084-tagging-notes/ Share on other sites More sharing options...
nbarone Posted July 7, 2009 Share Posted July 7, 2009 store it in the database Link to comment https://forums.phpfreaks.com/topic/165084-tagging-notes/#findComment-870543 Share on other sites More sharing options...
p2grace Posted July 7, 2009 Share Posted July 7, 2009 Are you familiar with mysql? Link to comment https://forums.phpfreaks.com/topic/165084-tagging-notes/#findComment-870544 Share on other sites More sharing options...
vineld Posted July 8, 2009 Share Posted July 8, 2009 I suppose the notes are already stored in a database? This is one way to do it: 1. Create two new tables in the database, one containing the tags themselves and one containing the relations between tags and notes. 2. Add for example a text area to the note form where the users can enter the tags separated by new row, comma or whatever you choose. 3. Collect and separate the tags and insert them into the database. You will probably want to add some validation here (max length, max number of tags etc.). Link to comment https://forums.phpfreaks.com/topic/165084-tagging-notes/#findComment-870676 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.