here's my question:
What is a PHP variable/string without quotes? Below is the code I wrote and went wrong:
$email = $_POST['email'];
$query = "DELETE FROM email_list WHERE email = $email";
the correct code should be:
$query = "DELETE FROM email_list WHERE email = '$email'";
So, variable $email is not a string without quotes, even if it's what I input in the form?
Then I wrote a code in PHP:
echo($email."<br />");
echo("$email" ."<br />");
The result turned out to be same in the browser. So why should I add another single quotes to enclose $email while it's already enclosed by double quotes?