芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/thefirstcookout.com/subscribe.php
prepare("SELECT * FROM subscribers WHERE email = :email"); $stmt->execute(['email' => $email]); if ($stmt->rowCount() > 0) { echo ""; } else { // Prepare SQL statement for insertion $stmt = $pdo->prepare("INSERT INTO subscribers (email) VALUES (:email)"); $stmt->execute(['email' => $email]); // Redirect or inform the user echo ""; } } else { echo "Invalid email address."; } } else { // Not a POST request http_response_code(403); echo "There was a problem with your submission, please try again."; } ?>