Iwant to check whether the userid and passsword entered for the designation 'business manager' and for ''counter assisstant is same as that in users table . if it is correct it must show next page main menu otherwise error message. what will be the code for that?

Well, there are some questions that we need answered first...

Where is the users table? Is it in a database? If so, what type of database are you using? Are you able to connect to the database okay?

In other words, can you give us more specific information and what progress you have made so far?