Like i said i'm new at this, so i hope this is the code you were refering to...... $connection = mysql_connect($host,$user,$password) or die ("couldn't connect to server"); $db = mysql_select_db($database,$connection) or die ("Couldn't select database"); $query = "INSERT INTO customer (first_name,last_name,email,address1,address2,city,state,zip,phone) VALUES ('$first_name','$last_name','$email','$address1','$address2','$city','$state','$zip','$phone')"; $result = mysql_query($query) or die ("Couldn't execute query."); echo "Thank You