0

I am attempting to delete a database entry, and am matching the entry in the database by searching via the user's email. This means a variable with the @ symbol is placed in my database entry as such:

DELETE FROM `table` WHERE id=$id AND uEmail=$email

I understand that the @ symbol has a usage in SQL, so I presume this is the problem with the statement above. I tried removing the email from the statement and just leaving id, and it worked. How can I escape the @ symbol present in the $email variable?

Thank you for help in advance!

VolkerK
  • 95,432
  • 20
  • 163
  • 226

0 Answers0