Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~2K People Reached
Interests
Web designing, tennis, badminton
Favorite Forums
Favorite Tags
Member Avatar for Tehim

I find for just numbers type_digit() works great combined with addslashes() but what about for a mixture, to prevent SQL injection?

Member Avatar for digital-ether
0
780
Member Avatar for Tehim

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]

Member Avatar for diafol
0
341
Member Avatar for Tehim

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 …

Member Avatar for MagicMedia
0
350
Member Avatar for Tehim

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 …

Member Avatar for Tehim
0
366