![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| ||||
| I recommend using one of the functions from my tutorial: TUTORIAL: MySQL Injection Attack Prevention in PHP |
| ||||
| Quote:
|
| ||||
| Well, the more important thing is to remember to use mysql_real_escape_string. That's all you have to use if you aren't affected by the MySQL advisement: Quote:
|
| ||||
| Ok Thanks, I was just wondering though, how do you get the input back to how it was input? As with mysql_real_escape_string() it puts in back slashes then that value would be in the database, then when you get it out you would want it back to normal? |
| ||||
| Most of the time that's done for you automatically. If not, you can then stripslashes. |
| The Following User Says Thank You to TeraTask For This Useful Post: | ||
Lee (08-12-2007) | ||
![]() |
| Thread Tools | |
| Display Modes | |
| |