How To Backslash Entries Going Into A Database
Computing : Learning PHP If you are putting data into a database, then most beginners find that things can go awry when adding apostrophes - ' - to the database. Remember to backslash before putting in the database: $mydata = addslashes($mydata); when you take out from the database and want to present back to the user, remember to remove them: $mydata = stripslashes($mydata);
Questions about Learn PHP:
|
|