Whew i fixed it. Just wanted to say thanks to everyone who helped me out here. especially brett. got it sorted out and have moved on to more complex user authentication tinkering. all is well
why you donig that you can very easy use any mysql class like that http://www.jooria.com/scripts/Databases-130/
Very good to hear! If you need more help, just let me know, i enjoy helping people troubleshoot their PHP problems. -Brett