I have seem many different ways of doing this.
At the moment I am using this...
Code: Select all
mysql_query("SELECT * FROM [color=#FF0000]user[/color] WHERE username='$username'") or die(mysql_error());
2. Whats the correct way to use a variable within a query?
a. username='$username'
b. username={$username}
c. username=" '.$username.' "
d. username=".$username."
e. Other...