I just need advise on how to set this up, not really the coding. When someone joins my site, the script will take the info and insert it into a mysql database. So far my database just concist of 1 table with 4 fields(id, username, pass, email). But I want to allow the user to add users to their profile. Since they can have numerous entries I just can't add another field to the user table. So I assume I need to make a new table(eg. buddy) and for each id they can add as many users as they want. Basiclly if I can get the structure right I can figure out how to write the code.
Maybe something like:
Database
-table users(id, username, pass, email)
-table buddy(addnumberid, userid, buddyname)
Saying when the user adds a buddy, it creates a new id#, userid would be the same as the userid in table users, and buddyname would be the text of the new buddy.
Would something like this work or am i off?