Jump to content

Archived

This topic is now archived and is closed to further replies.

Freekstyle

PHARSE error

Recommended Posts

i wrote

 

[php:1:0145684e14]<?php
mysql_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]

Share this post


Link to post
Share on other sites

add quotes (\") around your SELECT statement like so:

 

$login = mysql_query(\"SELECT * FROM users WHERE username =\'$username\' AND password =\'password\'\");

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.