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: egami, macek, gesf

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

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests