phpSensei Posted January 5, 2008 Share Posted January 5, 2008 I don't see the problem $username = trim($_POST['username']); $password = trim($_POST['password']); $password2 = trim($_POST['password2']); $country = trim(ucfirst(strtolower($_POST['country']))); $sexe = trim($_POST['sexe']); $age = trim($_POST['age']); $email = trim($_POST['email']); $file = trim($_FILES['image']['name']); $valid_file_type = array('image/png','image/gif','image/jpeg','image/pjpeg'); $joined = time(); mysql_query("INSERT INTO members VALUES(username,password,sexe,email,age,country,joined) VALUES ('$username','$password','$sexe','$email','$age','$country','$joined')") or die(mysql_error()); You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VALUES ('administrator','d41d8cd98f00b204e9800998ecf8427e','Male','jerose.14@hot' at line 2 Quote Link to comment https://forums.phpfreaks.com/topic/84635-solved-syntax-error/ Share on other sites More sharing options...
phpSensei Posted January 5, 2008 Author Share Posted January 5, 2008 Gawd i need glasses.. Quote Link to comment https://forums.phpfreaks.com/topic/84635-solved-syntax-error/#findComment-431278 Share on other sites More sharing options...
revraz Posted January 5, 2008 Share Posted January 5, 2008 Value twice Quote Link to comment https://forums.phpfreaks.com/topic/84635-solved-syntax-error/#findComment-431279 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.