[PHP]Mysql_Quer Syntax -.-

02/12/2012 15:28 iKyroja :>#1
Mein alzeit am meist gehasster PHP Fehler ist wieder aufgetreten -.-
(Die dummen Mysql_query Syntax was nur ein scheiß schreibt)

Der query :
PHP Code:
INSERT INTO 
    
`crduser`.`costumer`
     
SET 
    
`first_name` = '$this->first_name',
    `
last_name`  = '$this->last_name',
    `
email`      = '$this->email',
    `
zip_code`      = '$this->zip_code',
    `
city`          = '$this->city',
    `
street`      = '$this->street'
    
`phone`      = '$this->phone',
    `
birthday`      = '$this->birthday',
    `
password`      = PASSWORD('$this->password'),
    `
secure_answer`     = '$this->secure_answer',
    `
secure_question`   = '$this->secure_question',
    `
costumer_number` = '$this->costumer_number',
    `
activate_code`     = '$this->activate_code',
    `
user_status`         = '$this->user_status',
    `
user_admin`          = '$this->user_admin' 
Die DB:
PHP Code:
CREATE TABLE `costumer` (
  `
idint(12unsigned NOT NULL AUTO_INCREMENT,
  `
first_namevarchar(22NOT NULL,
  `
last_namevarchar(22NOT NULL,
  `
zip_codeint(12NOT NULL,
  `
cityvarchar(22NOT NULL,
  `
streetvarchar(42NOT NULL,
  `
emailvarchar(42NOT NULL,
  `
birthdayvarchar(42NOT NULL,
  `
passwordvarchar(42NOT NULL,
  `
secure_questionint(10NOT NULL,
  `
secure_answervarchar(42NOT NULL,
  `
user_statusint(10NOT NULL,
  `
user_adminint(10NOT NULL,
  `
activate_codevarchar(60NOT NULL,
  `
voucherint(10NOT NULL,
  `
costumer_numbervarchar(60NOT NULL,
  `
phoneint(60NOT NULL,
  
PRIMARY KEY (`id`)
ENGINE=InnoDB AUTO_INCREMENT=DEFAULT CHARSET=latin1
der Fehler
PHP Code:
You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '`phone` = '0****', ` birthday` = '17/**/****', `pass' at line 10 
02/12/2012 15:46 NotEnoughForYou#2
PHP Code:
`street`      = '$this->street' 
da fehlt ein , wobei ich es immer anderst mache

Wieso machst du es nicht einfach über

PHP Code:
INSERT INTO table (spalte1,spalte2VALUES ('spalte1val''spalte2val'
finde es so übersichtlicher
02/12/2012 15:49 iKyroja :>#3
das Komma war es ^^ oh man FAIL