Sql security

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Joe

VIP Member
Impact
48
hi
i've been talking to people
*ahem*SV and Scoot*ahem*
and i believe that my sql database can be hacked.
is it possible to make it more secure
and also, what is this 'mysql_real_escape_string' and how do i use it?

thanks

Joe
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
mysql_real_escape_string -- Escapes special characters in a string for use in a SQL statement. This function must always (with few exceptions) be used to make data safe before sending a query to MySQL.

More information: http://www.php.net/mysql_real_escape_string
 
0
Close
You don't really need to use mysql_real_escape_string for passwords that are hashed in md5, because md5 hases will never have ' or "

The manual entry for mysql_real_escape_string is pretty self explanatory, If you want some more advanced functions check out the user comments too.
 
0
Close
ok ty bay and Scott ;)
some very helpful advice
*reads comments*

Joe
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back