My goal is to create a blog like site that sorts blog posts (entry) by ID, however, what puzzles me is how I should go about storing messages, as well as the posters ID, for each of my blog posts. How should I do this in the database table?
This is the basic structure of my table so far, figured it would be dumb to make the whole thing if I'd have to rework it all:
CREATE TABLE `database`.`blog post` (
`id` INT NOT NULL AUTO_INCREMENT ,
`title` VARCHAR( 100 ) NOT NULL ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM ;
Anyhow, how would I go about creating a new column that could store all posts+user ids? Would it require linking two or more tables together?
I'm running my database on MySQL client version 5.0.7
Advices or links to tutorials/threads that would solve my issue would be appreciated!