' . mysql_error() . '' ); if( $result && mysql_num_rows( $result ) == 1 ) { // Get users details $avatar = mysql_result( $result, 0, "avatar" ); // Login successful $html .= "
Welcome to the password protected area {$user}
"; $html .= ""; } else { // Login failed $html .= ""; } mysql_close(); } ?>
Username and/or password incorrect.