Please help me before I lose what is left of my mind. I won't put any code here, because mine doesn't work anyway and I would like to satrt from scratch. A user comes to the main page of the site. They click on customer to go to a customer-login.php page. This page has username and password on it. When they click submit it goes to a page called loginaction.php. This page validates by cookie the username and password. If those are correct the user is taken to their own page such as customerabc.com. They then fill out an order form, click submit and their order is sent through an email to the company for processing. The company now wants me to convert the site to mysql for obvious reasons. on my customer-login.php I have two includes....one is to connect to the database and the other is to login to the database. Both of these work fine. I have one table so far which is called login - it contains the fields username, password, lastLogin, loginId. I set up a page where I pull the data out of those fields and again it works fine. The problem comes when I try to validate that the user that has just entered their information onto the customer-login.php page. I cannot get anything I try to work. Again, I want the user to enter username and password, these to be validated with the database, and if correct the user will go to their own customer page. What seems like it should be so easy has given me hours of grief. I have used other peoples code snippets as well as writing my own. Can someone please help me accomplish this task where it works? Thank you.....