Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 19:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[PHP]Mysql_Quer Syntax -.-

Discussion on [PHP]Mysql_Quer Syntax -.- within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1

 
iKyroja :>'s Avatar
 
elite*gold: 20
Join Date: May 2010
Posts: 2,792
Received Thanks: 1,988
[PHP]Mysql_Quer Syntax -.-

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 
iKyroja :> is offline  
Old 02/12/2012, 15:46   #2
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,407
Received Thanks: 2,024
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
NotEnoughForYou is offline  
Old 02/12/2012, 15:49   #3

 
iKyroja :>'s Avatar
 
elite*gold: 20
Join Date: May 2010
Posts: 2,792
Received Thanks: 1,988
das Komma war es ^^ oh man FAIL
iKyroja :> is offline  
Reply


Similar Threads Similar Threads
at&t syntax
09/21/2011 - General Coding - 8 Replies
hmmm... ich wusste zwar dass die at&t syntax (meiner meinung nach) nichts schönes is.... aber is die so anders? __asm("mov eax, fs:"); __asm("mov eax, "); __asm("mov edx, eax"); __asm("add eax, 0xeeeeeeee"); // platzhalter! __asm("push eax"); hier bekomm ich fehler für: mov eax, - too many memory references for 'mov' | invalid char ''
#insert_item Right Syntax
07/24/2011 - Rappelz - 9 Replies
the right syntax for the insert_item function : #insert_item(ID,howmuch,+,level,flag,"YourNa me") example : #insert_item(540100,1,20,10,2,"Strean") description :
Syntax?
02/14/2011 - AutoIt - 26 Replies
Hey Leute, gibt es in diesem Programm, rein syntaktisch gesehen irgendwelche Fehler, weil Imagesearch, keins der Bilder identifizieren kann? Dim $myPics $myPics = 14 $myPics = '1.bmp' $myPics = '2.bmp' $myPics = '3.bmp' $myPics = '4.bmp' $myPics = '5.bmp'
[HELP] C# WPF syntax
12/23/2010 - CO2 Programming - 14 Replies
Does anyone knows how to convert or what's the right syntax on this C# form application syntax? webBrowser1.Document.GetElementById("name&quo t;).SetAttribute("value", textBox2.Text); webBrowser1.Document.GetElementById("message& quot;).SetAttribute("value", textBox1.Text); webBrowser1.Document.GetElementById("sumbit&q uot;).InvokeMember("click"); i'm having error on "GetElementById" :S just confused.
[FRAGE] php Syntax
09/17/2010 - Flyff Private Server - 1 Replies
Hi, könnte mir bitte jemand hier weiterhelfen .Möchte eine Rankingtabelle machen in der die Teammitglieder nicht angezeigt werden so nach der Art : <? require('./configs/reg_conf.php'); mssql_select_db("ACCOUNT_DBF"); if ('m_chLoginAuthority' == F) { echo "wird in Tabelle angezeigt";} else



All times are GMT +2. The time now is 19:09.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.