mysql + Insert -> find den fehler ned

Seite 1 von 1 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/mysql_insert_gt_find_den_fehler_ned_131484/page_1 - zur Vollversion wechseln!


moidaschl schrieb am 07.12.2004 um 21:24

Hier der nopaste code

http://nopaste.php-q.net/101132


fehlermeldung

Zitat
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 'Alter, ImVerSeit, Wurfhand, Spielposi, Famstand, EMail, Groesse

und i find den friggin' typo ned , such scho seit 10 minuten :rolleyes:

need help ( wiedermal :D )

thx !

edit:
wenn ich mir die ersten 7 ausgeben lass:

sdfsddf
sdfsdf
1
12.12.1022
12
2333
sdfssdas

=> auch keine versteckten ' oder so drinnen..

und punkt 2:

( andere baustelle )

wie muss ich mit der where bedingung gscheit umgehn? i finds ned wie ich zwei where bedingungen schreibe

Code: PHP
 $sql = "SELECT 
              ID 
             FROM 
              players 
             WHERE 
              Name = '".$Name."', 
              VName = '".$VName."'
             ;";


watchout schrieb am 07.12.2004 um 21:50

zu pkt 1: setz "Alter" innerhalb "´" alter is ein mysql-keyword ;) :D


edit: pkt 2; try "and" ;)


moidaschl schrieb am 07.12.2004 um 22:09

@watchout:

holy shit ich lern auch ned dazu :D hatte so ein problem mal mit "Desc" -> gabs auch probleme, da hat mir semtex geholfen

@ pkt2: habs schon gfunden, trozdem thx
mal schaun obs worked


worked

thx :)




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025