Thirteen Years of Service
Posts: 7
Threads: 1
RE: [PHP] Protection from SQL injection 08-26-2011, 09:06 PM
#3
mysql_real_escape_string()
can help you there.
•
Thirteen Years of Service
Posts: 19
Threads: 3
RE: [PHP] Protection from SQL injection 09-24-2011, 11:39 PM
#4
usually you know if your id contain numeric or alphanumeric values, anyway,
i used to do like this :
if (preg_match("#^[0-9]#", $_GET['id'])) echo "thats cool";
else die "wtf are you doing";
for alphanumeric thats working:
if (preg_match("#^[a-zA-Z0-9]#", $_GET['id']))
•
Thirteen Years of Service
Posts: 8,518
Threads: 1,285
RE: [PHP] Protection from SQL injection 11-09-2011, 02:28 PM
#5
Thanks for the share. I will be needing this when i have my website up and running. Ill reward $20 if you can hack my site.
•
Thirteen Years of Service
Posts: 944
Threads: 67
RE: [PHP] Protection from SQL injection 11-20-2011, 07:28 PM
#7
Good share once again ill use this sometimes
<?php echo "Very inactive at this current moment in time"; ?>
•
Thirteen Years of Service
Posts: 26
Threads: 1
RE: [PHP] Protection from SQL injection 11-28-2011, 03:36 AM
#9
Something else to remember is just because you don't output an error doesn't mean you can get exploited. Blind SQL injection is tricky, but not impossible. I'll post some code later I wrote a while back to demonstrate it.
•
Thirteen Years of Service
Posts: 5
Threads: 0
RE: [PHP] Protection from SQL injection 03-28-2012, 05:58 AM
#10
I need help with a project can anyone help, a secure project if you get my drift, and youy certainly are the people to get advice from. Cheers! My skype id is silverbuyer
•