What is wrong with this code. I keep getting this error:
You have an error in your SQL syntax near '('password')' at line 1
//create and issue the query
$sql = "select username, user_password from phpbb_users where username = '$_POST[username]' AND user_password = user_password('$_POST[user_password]')";
$result = mysql_query($sql,$conn) or die(mysql_error());
//get the number of rows in the result set; should be 1 if a match
if (mysql_num_rows($result) == 1) {
please help, I've going after this for hours. Any help you can provide would be great.