PHP
SQL Injection
$query = 'SELECT id,username FROM users WHERE id=' . $injection . ' LIMIT 1';$sql = "INSERT INTO MyGuests (firstname, lastname, email) VALUES (?, ?, ?)";
// Prepare the SQL query template
if($stmt = $conn->prepare($sql)) {
// Bind parameters
$stmt->bind_param("sss", $firstname, $lastname, $email);
// Set parameters and execute
$firstname = "John";
$lastname = "Doe";
$email = "john@example.com";
$stmt->execute();Serialization
Strcmp and Strcasecmp
parse_url
TOUTOC
preg_match
Last updated