View Single Post
Old 06-15-2005   #12 (permalink)
Man1c M0g
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,073
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
Quote:
Originally Posted by Space Cowboy
um im getting confused in my users table i have id which is primary and auto increment and i can't have two. Should i create a new table called messages then, and add username, messageid and everything?
Oh HELL yes! You should create seperate tables for each major new feature that requires lots of new data fields - it keeps your tables much simpler that way. You can always pass variables between the tables using PHP - its dead easy really! Just think of it this way - your MessageID field will be the unique auto-incrementing one unique to this table, your sendingusername/receivingusername will relate to the member ID on the Users table.

Its all very logical - you just have to get your head around thinking in this way.
__________________
Man1c M0g is offline