odetron Posted February 18, 2007 Share Posted February 18, 2007 $query = “select * from users where username=’$username’ and password=’$password’”; whats wrong with this? Quote Link to comment Share on other sites More sharing options...
printf Posted February 18, 2007 Share Posted February 18, 2007 What are using for a editor, those are not standard double and single quotes? $query = "SELECT * FROM users WHERE username = '" . $username . "' AND password = '" . $password . "'"; printf Quote Link to comment Share on other sites More sharing options...
superuser2 Posted February 18, 2007 Share Posted February 18, 2007 Printf is right, you need to use straight quotes, which, in any normal editor, are shift-apostrophe. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.