I want to store articles in a database, but I can’t find a lot of information on how to do this, from what I read, it seems that between most people there is something that can be done efficiently. Many people will suggest a way, while others will point out problems with sql injections, and I cannot find much in this topic, which is quite new.
Here is the html article:
<div id="main"> <article> <header> <h3> Title </h3> <time pubdate="pubdate"> 2011-07-22 </time> </header> <p> Article Text </p> </article> </div>
Ideally, I assume that it is best to store the html piece that makes up each article in a database, but it seems to have a lot of problems with this, and as I said, I can’t find many posts on this topic, and how who something new for php and databases, I want to get some input on a better way to do this before continuing.
source share