Jump to content

[SOLVED] Syntax Error.


phpSensei

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/84635-solved-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.