Coffee on the Keyboard
  • Home
  • jamessocol.com
Sign in Subscribe

attack

A collection of 1 post
attack

Responsible SQL: How to Authenticate Users

Most SQL-injection articles set a horrible example for young programmers. Here is a very typical “bad example” of why you need to escape user data before it goes into SQL queries: (ed. The symbol « is a line break that’s not in the real code.) 1. $username = $_POST[‘username’]; // username=
09 Nov 2008 4 min read
Page 1 of 1
Coffee on the Keyboard © 2025
Powered by Ghost