Hi friends.
I want to know about the ways of protecting my websites from SQL injection attacks, so please explain about the subject.
Thank you.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nitin SontakkeRank #264 · 9.6K reputationPosted Dec 31, 2016, 5:08 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Dec 31, 2016, 5:11 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Jan 1, 2017, 5:19 PM EST
Daniel JonesRank #5,109 · 311 reputationPosted Jan 1, 2017, 6:41 PM EST
Kesavan KrishnanRank #3,055 · 471 reputationPosted May 28, 2017, 9:25 PM EDT
$query = $pdo->prepare('SELECT * FROM products WHERE name = :name');$query->execute(array('name' => $name));foreach ($query as $result) { // do logic on the data }?>$query = $dbConnection->prepare('SELECT * FROM products WHERE name = ?');$query->bind_param('s', $name);$query->execute();$result = $stmt->get_result();while ($row = $result->fetch_assoc()) { // do login on data }Vivek KumarRank #272 · 9.3K reputationPosted May 29, 2017, 11:10 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Jan 1, 2017, 10:20 AM EST
Joe WilsonRank #631 · 3.8K reputationPosted Jan 2, 2017, 2:07 AM EST
Joe WilsonRank #631 · 3.8K reputationPosted May 29, 2017, 10:25 AM EDT