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
?>
More forms PHP Questions
How do I check that a valid email address is entered?How can I access information sent through GET on a form?
What are magic quotes?
How can I access information sent through POST on a form?
How do I remove escape characters from data?