- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Web designing, tennis, badminton
I find for just numbers type_digit() works great combined with addslashes() but what about for a mixture, to prevent SQL injection? |
|
I was just wondering if it can or not. Otherwise wouldn't this code work great for stopping SQL injection? [code=php] $some_post = addslashes($_POST['some_post']); if (!ctype_alnum($some_post)) { //error } else { //all good } [/code] |
|
I'm trying to make a ban system for my website with the following features: -Tell user reason for the ban -Tell user date it'll expire -Tell user date it was issued -Tell user who they where banned by -Auto perma if user has been banned a total of 3 times … |
|
Basically I'm making a script that sends the user an email on register and they have to click a link in the email to activate their account. But in my activate page their seems to be an error in my coding and I've checked it over but I can't find … |