get id from url security question

Security issues related to php and mysql usage. How to make your code secure? Security measures and configurations? It's all in here!

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: get id from url security question

Post by johnj » Sun Sep 09, 2012 6:04 am

use require_once so that php stops execution if the file is not found.

do not use $_GET() directly. use isset() to get if it has a value.

after you have executed a sql query, check if the return value is not false.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest