first I want to thank you [!--quoteo(post=362614:date=Apr 7 2006, 01:48 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 7 2006, 01:48 PM) [snapback]362614[/snapback][/div][div class=\'quotemain\'][!--quotec--] How are you connecting to your MySQL database? As this the reaosn why you're getting this error: [i]Access denied for user 'ODBC'@'localhost' (using password: NO)[/i] And yu are getting the secound error because your SQL syntax is wrong. This is what it should be: [code]$validate = mysql_query("SELECT * FROM members WHERE username = '$username' AND password = md5('$password') AND verified = '1'");[/code] [/quote] how I connect to my MySQL database? [code]<?php //connect to mysql $sql = mysql_connect('localhost','root'); //select database: PHPFreaks mysql_select_db('PHPFreaks',$sql) or die(mysql_error()); ?> [/code] I didn't setup password, because I doing it on my computer as practice so I don't think thats necessary About my SQL error. The sounds interesting. because I got the syntax from a book call "Creating Interactive Websites with PHP Web Services" and the author is [b]Eric Rosebrock[/b] which I think is the owner of this website. thank you Drunkpanda