![]() |
Secure user submitted queries?
Hello,
I'd like to know what needs to be done to secure user submitted queries. Is using mysql_real_escape_string for each $_POST and $_GET var enough? Or should I do more? Thanks! |
PHP Code:
PHP Code:
|
Ok, thanks, and once I want to get it from the database, any functions I need to use so it shows up properly?
Thanks! |
This is what I use my self...
PHP Code:
Also if your expecting a number to be submitted either via POST or GET then I personally do the following: PHP Code:
|
I've been using is_numeric for the second job.
Both functions suggested look simular, I guess they'll be secure :) |
| All times are GMT. The time now is 02:55 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0