PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do I escape data that is going into a database?


There are various ways to do this. If you know for sure that you need to escape your data, one way is through using the addslashes function, like this:
<?php
$mydata 
"hello I'm great"
$mydata addslashes($mydata);
//now contains: hello I\'m great
?>



ASK A QUESTION

More forms PHP Questions

This may seem simple but I am just starting out. After the action of my submit button on my html page sends the user and the information to my php page how do I get the user back to the page with the form without having to get the user to have to click o

hello I found this code somewhere and tried to create online dictionary with it. I managed to insert the code in to my template index.php. But after the user click submit button the result shows in other blank self created page something like index.php?a

how to access information sent trough $_GET on functions?

I am using mail()to process a form. I can only get part of the form to be sent. The $message part only picks up one field in the form.

Dear Friends, I need to enable the user to add a drop down menu and a text field by only clicking on button (in case the user wants more) I have the following codes how do I make it better: Enter User : Truck Mixer



Custom Search