Hello everyone,
I'm a true beguiner on php but i'm still giving it a try, I've to build a website that will be constantly updated with news, so I tought that somehow the best way to do it is to instert all the data on the database and let it create a div with it.
I've created 3 div classes( .smallsize ; .medsize ; .maxsize) with its sizes and everything on the css, and I want them to appear on the div with id="news".
the table for that news is structured this way( news_id>title>text>image)
so what i tought was:
smallsize class would get only the image;
medsize class would get the title and image;
maxsize class would get the title image and text.
so basically what I need to know first of all is how do I make the code to generate a div everytime a news is added to the database, with one of those 3 classes, getting that elements that I mentioned above. inside the div with id="news"
Thank you alot,
Gonçalo Pereira