Bekomm immer folgenden Fehler ausgegeben :
have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '')' at line 1: INSERT INTO User_Server
bei folgendem Code:
$query = "INSERT INTO User_Server" ."(servername, rcon, serverpw, privpw, players, privat, minping, maxping, admin, email, homepage, location, allowdown, wwwdown, baseurl, disconnect, logsync, logfile, namelog, damalog, master1, master2, master3, master4, master5, master6, master7, master8, maxrate, fps, time, zombie, inactivi, inispec, flood, reconnect, scriptspam, console, cmd, pure, banip, bantime, voice, voicequali, deadchat, voiceglobal, localecho, micmute, teambalance, allowvote, killcam, deathpoint, suicidepoint, teamkillpoint, spectatetype, forceuav, hardpoints, allowartillery, allowuav, allowhelicopter, fftype, spawndelay, kickteamkiller, maxhealth, suicidspawndelay, healthregentime, forcerespawn, sprinttime, hardcore, oldschool, obituaries, showobjicons, anonymous, antilag, showenemies, gametype, dmscorelimit, dmtimelimit, dmroundlimit, dmnumlives, dmplayerrespawndelay, dmwaverespawndelay, domscorelimit, domtimelimit, domroundlimit, domnumlives, domplayerrespawndelay, domwaverespawndelay, warscorelimit, wartimelimit, warroundlimit, warnumlives, warplayerrespawndelay, warwaverespawndelay, sabscorelimit, sabtimelimit, sabroundlimit, sabnumlives, sabplayerrespawndelay, sabwaverespawndelay, sabroundswitch, sabbombtimer, sabplanttime, sabdefusetime, sabhotpotato, sabscorelimit, sdtimelimit, sdroundlimit, sdnumlives, sdplayerrespawndelay, sdwaverespawndelay, sdroundswitch, sdbombtimer, sdplanttime, sddefusetime, sdmultibomb, kothscorelimit, kothtimelimit, kothroundlimit, kothplayerrespawndelay, kothwaverespawndelay, kothautodestroytime, kothspawntime, kothkothmode, kothcapturetime, kothdestroytime, kothdelayplayer, kothspawndelay)" ."VALUES " ."('$servername','$rcon','$serverpw','$privpw','$players','$privat','$minping','$maxping','$admin','$email','$homepage','$location','$allowdown','$wwwdown','$baseurl','$disconnect','$logsync','$logfile','$namelog','$damalog','$master1','$master2','$master3','$master4','$master5','$master6','$master7','$master8','$maxrate','$fps','$time','$zombie','$inactivi','$inispec','$flood','$reconnect','$scriptspam','$console','$cmd','$pure','$banip','$bantime','$voice','$voicequali','$deadchat','$voiceglobal','$localecho','$micmute','$teambalance','$allowvote','$killcam','$deathpoint','$suicidepoint','$teamkillpoint','$spectatetype','$forceuav','$hardpoints','$allowartillery','$allowuav','$allowhelicopter','$fftype','$spawndelay','$kickteamkiller','$maxhealth','$suicidspawndelay','$healthregentime','$forcerespawn','$sprinttime','$hardcore','$oldschool','$obituaries','$showobjicons','$anonymous','$antilag','$showenemies','$gametype','$dmscorelimit','$dmtimelimit','$dmroundlimit','$dmnumlives','$dmplayerrespawndelay','$dmwaverespawndelay','$domscorelimit','$domtimelimit','$domroundlimit','$domnumlives','$domplayerrespawndelay','$domwaverespawndelay','$warscorelimit','$wartimelimit','$warroundlimit','$warnumlives','$warplayerrespawndelay','$warwaverespawndelay','$sabscorelimit','$sabtimelimit','$sabroundlimit','$sabnumlives','$sabplayerrespawndelay','$sabwaverespawndelay','$sabroundswitch','$sabbombtimer','$sabplanttime','$sabdefusetime','$sabhotpotato','$sabscorelimit','$sdtimelimit','$sdroundlimit','$sdnumlives','$sdplayerrespawndelay','$sdwaverespawndelay','$sdroundswitch','$sdbombtimer','$sdplanttime','$sddefusetime','$sdmultibomb','$kothscorelimit','$kothtimelimit','$kothroundlimit','$kothplayerrespawndelay','$kothwaverespawndelay','$kothautodestroytime','$kothspawntime','$kothkothmode','$kothcapturetime','$kothdestroytime','$kothdelayplayer','$kothspawndelay)"; $dummy = mysql_query($query) or die(mysql_error().': '.htmlentities($query)); mysql_close($dz);
Such jetzt seit 2 Stunden kann den Fehler nicht finden!
Könnte mir verzeifeltem php noob jemand helfen?
Dank Euch jetzt schon !
Gruss an alle hier
Silfer
Zuletzt modifiziert von Silfer am 28.06.2009 - 01:27:01