| | |
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: 161
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
Views: 758 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cookies cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube





