How can I query SQL to display an error message? Suppose the user types in his username and password. When he types a wrong username, an "Error: Invalid Username" will appear. And when he types in a wrong password, an "Error: Invalid Password" will appear.
P.S. I'm a beginner in CodeIgniter and PHP.