Pretty basic question really.. and I have been doing quite a bit of this kinda stuff but this would be the first form I would have built for the world to insert information into a database and wanted to check my notes.. Will doing a preg_replace or similar to remove or encode special characters make it safe, or at least safer, so I don't get code injected into my database?.. just worried about malicious inserted data.