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] Quote 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\'\"); Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/817-pharse-error/#findComment-2703 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.