Mxtrem | Salut tout le monde ! Bon je suis complètement HS par trop de code et une erreur SQL me pourrie la vie depuis 1h30 J'ai les yeux brûlés et j'y vois absolument plus rien
ECHO DU QUERY
INSERT INTO `users` (`user_id`,`sHide`,`username`,`password`,`country`,`zip`,`city`,`sex`,`birth`,`vip`,`st_latitude`,`st_lontitude`,`st_referent`,`st_userAgent`,`st_ip`,`create`) VALUES ('180678528','95506a3010c4b87d5fcc9cb96120c587efbc77ff','laserquest','c984aed014aec7623a54f0591da07a85fd4b762d','FR','30000','Courbessac','Male','09/02/1976','1','43.8666667','4.4','http://www.mxtrem.com/','0','88.160.105.231:1516','2007-06-26 23:30:38')
ERREUR SQL
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 '0' at line 1
PARTIE DU CODE QUI ME GONFLE
Code :
$sqlInputs = "`user_id`,"; $sqlInputs .= "`sHide`,"; $sqlInputs .= "`username`,"; $sqlInputs .= "`password`,"; $sqlInputs .= "`country`,"; $sqlInputs .= "`zip`,"; $sqlInputs .= "`city`,"; $sqlInputs .= "`sex`,"; $sqlInputs .= "`birth`,"; $sqlInputs .= "`vip`,"; $sqlInputs .= "`st_latitude`,"; $sqlInputs .= "`st_lontitude`,"; $sqlInputs .= "`st_referent`,"; $sqlInputs .= "`st_userAgent`,"; $sqlInputs .= "`st_ip`,"; $sqlInputs .= "`create`"; $sqlValues = "'".$G_userID."',"; $sqlValues .= "'".$G_sHide."',"; $sqlValues .= "'".$G_username."',"; $sqlValues .= "'". sha1($G_password0). "',"; $sqlValues .= "'".$G_country."',"; $sqlValues .= "'".$G_zipcode."',"; $sqlValues .= "'".$G_city."',"; $sqlValues .= "'".$G_usersex."',"; $sqlValues .= "'".$G_birthdate."',"; $sqlValues .= "'".$G_vip."',"; $sqlValues .= "'".$G_latitude."',"; $sqlValues .= "'".$G_longitude."',"; $sqlValues .= "'0',"; $sqlValues .= "'".$G_ip."',"; $sqlValues .= "'".$G_created."'"; $sqlCmdF = "INSERT INTO `users` (".$sqlInputs." ) VALUES (".$sqlValues." )"; if($sqlCmdF!=1) { header("Location: ". $G_getget. $err007); } else { }
|
En vous remerciant tous !!! Message édité par Mxtrem le 26-06-2007 à 23:43:37
|