There might be a problem with the location of the connection file on this page. You must ensure that the require_once line for the connection file occurs before any recordset code. If you have any further trouble with this post back with a zip archive of the login page and the page you are trying to go to after logging in so that I can take a look.