i’m creating a kind of blog system, in which the poster will have to choose what “type” his post is. There is about 7-10 different types of posts (I haven’t figured them all out yet) and the poster chooses what type it is in a drop-down list.
In the table called “tbl_posts” i’m having a column called “type”. There is a relation between this column and the table called “tbl_type” so that the type the poster chooses in the drop-down list has the integer value that matches the id of the type in the “tbl_type” table.
The problem i’m having is how to figure out how to make the application so that a certain picture (that is specified to each type) is shown besides the post. Can anybody help me with this?