Freekstyle Posted August 1, 2003 Share Posted August 1, 2003 i wrote [php:1:0145684e14]<?phpmysql_select_db($database_Databasesite, $Databasesite);$login = mysql_query(SELECT * FROM users WHERE username =\'$username\' AND password =\'password\');?>[/php:1:0145684e14]it says somethings wrong with it i have tried tons of times to fix it but it dont work. why?Thanx in advance :wink: [/quote][/code] Link to comment https://forums.phpfreaks.com/topic/817-pharse-error/ Share on other sites More sharing options...
akitchin Posted August 1, 2003 Share Posted August 1, 2003 add quotes (\") around your SELECT statement like so: $login = mysql_query(\"SELECT * FROM users WHERE username =\'$username\' AND password =\'password\'\"); Link to comment https://forums.phpfreaks.com/topic/817-pharse-error/#findComment-2702 Share on other sites More sharing options...
Freekstyle Posted August 1, 2003 Author Share Posted August 1, 2003 YES!!! holy crap i cant belive i didn\'t even think about it. i overlooked a little mistake i always do along with the ending brackets. lol THANK YOU Link to comment https://forums.phpfreaks.com/topic/817-pharse-error/#findComment-2703 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.