0

For my site there is a loginsystem where you need to login with your emailadress, but the problem is that my query gives an error when I start writing my emailadress whenever I use a point.

Here is my query:

  $sql = "SELECT LeerlingID FROM tblLeerlingen WHERE email = '$myusername' and Wachtwoord = '$mypassword'";

1 Answers1

1

Simply wrap your strings properly:

SELECT LeerlingID FROM tblLeerlingen WHERE email = '[email protected]' and Wachtwoord = '0dc22c6a909acf658232f6a38e780d7b';
maio290
  • 6,440
  • 1
  • 21
  • 38