Page 1 of 1
The best way for securing data going into database?
Posted: Sat Feb 05, 2011 11:47 am
by Domsore
I have brought this book on PHP and have had it for a while. Today I was thinking about security (just randomly.. quite odd) so I looked it up in this book. There are too many different things that have to be done in my opinion. It there not just one function that I could use to prevent any attacks?
Cheers,
Dom
Re: The best way for securing data going into database?
Posted: Sat Feb 05, 2011 11:55 am
by social_experiment
Take a look at the Security section in the php manual, specificly about Databases. You can use mysql_real_escape_string() to ensure you aren't vulnerable to SQL Injection.
Re: The best way for securing data going into database?
Posted: Sat Feb 05, 2011 12:00 pm
by Domsore
Oh thanks... I'm sort of disappointed I see no mention of this in my book.
Re: The best way for securing data going into database?
Posted: Sat Feb 05, 2011 12:11 pm
by social_experiment
Yeah you have to look for a book that's geared specifically to such a topic, or search the internet for articles about it.