Ok I have a user form that has values submitted to the database.
My values are as follows,
$type = $_POST['type'];
$username = mysql_real_escape_string($_POST['username']);
$gender = $_POST['gender'];
$email = mysql_real_escape_string($_POST['email']);
$password = mysql_real_escape_string($_POST['password']);
I then insert them, as follows,
mysql_query("INSERT INTO accounts (username, email, password, gender, type) VALUES ('$username', '$email', '$password', '$gender', '$type')");
Now I was totally fine with this then I do some research, and something called Bobby Tables gets me all worried about security, then I find out that mysql_real_escape_string should be used for radio buttons as well, and then I find out that I need to define if an input value is an integer and check for it?? Now this has got me all worried as my site I thought was secure, which it is obviously not, so with some help can you please explain bobby tables and how to secure even more than using the standard real escape?
Thanks