Thank you for your help. I guess I didn't state my requirement very well. The query to the checkit table is meant to verify that the person registering with the form for access to protected pages is listed, first name and last name, as a company employee on the checkit table.
If the first name/lastname are on the checkit list, then the person can proceed with registration. If the first/last names are NOT on the checkit list, then process exits with error page.
Consider what this requirement is, I don't know how to use the
if ($rows < 0){
call or =0 or >0 -- specific enough. I need to be able to match the firstname/lastname from the form submission to the row on the checkit table list that contains the same first and last names.
I tried:
if (fname !== $fname) {
if (lname !== $lname) {
print "ERROR MESSAGE";
}
}
else {
}
(proceeds with registration process)
but apparently MySql doesn't know I'm asking it to check the form submission data for firstname/lastname against the checkit table rows of firstname/lastname.
MySql gives me the "not in the db list of names" error message each time, whether the form submitted firstname/lastname is in a checkit table row or not.
So, am stumped. Thanks again for your help, and if you have further suggestions, I am listening, that's for sure.
Thanks, Naparon