« first day (1135 days earlier)      last day (1523 days later) » 

8:21 AM
For a forum-like website that I'm building, I have PHP classes 'user' and 'post'. A user has an array of posts. How to resemble that connection in a relational database? With a foreign key on 'post', pointing to a 'user'? This makes sense to me because of a one-to-one relationship, whereas 'user' to 'post' would be one-to-many.
 
 
10 hours later…
6:28 PM
@Kensing Yeah, your post table would have a column user_id that would be a foreign key pointing at the primary key in the user table
 

« first day (1135 days earlier)      last day (1523 days later) »