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
DYnamic Dropbox when I select a value it has to add a textbox to a specific position in the form how do I do it?? If I could change the dropbox in a textbox and make it add Textboxes depending on the number typed it would be even better but dont think thWhat are magic quotes?
if i send values to database ,but in that table zeros is added ,how can i rectify the error
how to avoid the refresh or goback to submit the post values in database
PHP program to register students' record
