odetron Posted February 18, 2007 Share Posted February 18, 2007 $query = “select * from users where username=’$username’ and password=’$password’”; whats wrong with this? Link to comment https://forums.phpfreaks.com/topic/39089-t_string-help/ 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 Link to comment https://forums.phpfreaks.com/topic/39089-t_string-help/#findComment-188241 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. Link to comment https://forums.phpfreaks.com/topic/39089-t_string-help/#findComment-188252 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.