Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Milline neist SQL päringutest on kaitstud SQL injectioni vastu?
$query = "SELECT * FROM products WHERE id = " . $_GET['id'];
$stmt = $pdo->prepare("SELECT * FROM products WHERE id = ?"); $stmt->execute([$id]);
$query = "SELECT * FROM products WHERE id = '$id'";
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!