0

down vote
favorite Hi

Let's say that I have this query:

Code:
SELECT  * FROM    students_results WHERE   full_name LIKE '".trim($_POST['full_name'])."'  AND mother_name LIKE '".$database->escape_value(trim($_POST['mother_name']))."'  AND birthday = '".$database->escape_value($_POST['year2'])."'"
I need to display a message for the vistor to tell him that he entered a wrong name or wrong mother name or wrong year.

Now, I display a message for the user that he entered wrong values, I want to display detailed information about what wrong values he entered.

for example, if the user entered wrong name and year, mother name are right, I want to tell him that you entered a wrong name. How I can do that?


Thanks in advance.