| | |
mysql_real_escape_string ?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 119
Reputation:
Solved Threads: 0
Hi,
Me again...
Just wanted to know, i have this piece of code to enter the data from a registration form of mine into the user db.
I want to use the mysql_real_escape_string to help stop those evil people who enjoys hacking from hacking my DB
$query = "INSERT INTO userinformation (username, first_name, last_name, email, password, date_time) VALUES ('$username', '$first_name', '$last_name', '$email', '$password', '$date_time')";
could someone tell me where i need to put the mysql_real_escape_string function to stop it happening, i am not sure where i place it by or how i code it,
thank you,
genieuk
Me again...
Just wanted to know, i have this piece of code to enter the data from a registration form of mine into the user db.
I want to use the mysql_real_escape_string to help stop those evil people who enjoys hacking from hacking my DB
$query = "INSERT INTO userinformation (username, first_name, last_name, email, password, date_time) VALUES ('$username', '$first_name', '$last_name', '$email', '$password', '$date_time')";
could someone tell me where i need to put the mysql_real_escape_string function to stop it happening, i am not sure where i place it by or how i code it,
thank you,
genieuk
•
•
Join Date: Aug 2008
Posts: 150
Reputation:
Solved Threads: 6
PHP Syntax (Toggle Plain Text)
$username=mysql_real_escape_string($username); write before the query
•
•
•
•
Hi,
Me again...
Just wanted to know, i have this piece of code to enter the data from a registration form of mine into the user db.
I want to use the mysql_real_escape_string to help stop those evil people who enjoys hacking from hacking my DB
$query = "INSERT INTO userinformation (username, first_name, last_name, email, password, date_time) VALUES ('$username', '$first_name', '$last_name', '$email', '$password', '$date_time')";
could someone tell me where i need to put the mysql_real_escape_string function to stop it happening, i am not sure where i place it by or how i code it,
thank you,
genieuk
My best wishes ... from my soul ... for everyone!
Keep Smiling....Never Depress
Keep Smiling....Never Depress
![]() |
Similar Threads
- mysql_real_escape_string (PHP)
- mysql_real_escape_string escapes char entities? (PHP)
- mysql_real_escape_string woes (PHP)
- what does this code do? (PHP)
- Search Script help (PHP)
- php error HELP!!! (PHP)
- using mysql_real_escape_string() (C++)
Other Threads in the PHP Forum
- Previous Thread: MySQL/Directory Member Photo Upload script trouble ...
- Next Thread: Sending attached files in php
| Thread Tools | Search this Thread |
ajax apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error errors execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google href htaccess html image include insert integration ip java javasciptvalidation javascript joomla keywords limit link login mail matching menu mlm multiple mysql oop paypal pdf php phpincludeissue problem query radio random recursion recursive regex remote script search server sessions shot sms soap source space sql subscription syntax system table tag tutorial tutorials update upload url validator variable vbulletin video web xml youtube





