====== PDO - Using Prepared Statements to Stop Injection Attacks ====== Using prepared statements, sometimes also known as parametrized queries, helps prevent SQL Injection Attacks. prepare($query); // Execute the query with our parameters $statement->execute($parameters); // Get the first returned row. $row = $statement->fetch(PDO::FETCH_ASSOC); ?>