How do I escape data that is going into a database?
<?php
$mydata = "hello I'm great";
$mydata = addslashes($mydata);
//now contains: hello I\'m great
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More forms PHP Questions
if i send values to database ,but in that table zeros is added ,how can i rectify the errorHow do I check for an empty field in a form?
1.want to know simple logic and procedure of FORM VALIDATION? 2.How to check Login and password in PHP?
how to display like table from database records?
I currently use this form on my site: Name
