|
One of the things you’re going to encounter when using MySQL with PHP sooner, rather than later, is the issues that arise when you start accepting user input in the form of comments or blog posts. Up until now in this tutorial, we’ve just been using datcasa that we’ve defined ourselves. We’ve been able to control what goes into our database tables.
When dealing with the general public though, we can’t assume anything about the data they submit into our database. In fact, we have to assume the worst, since the worst is what might break our website. Let’s look at a simple example first of all |
 |