Shoutbox
Gästen ist das Schreiben von Mitteilungen nicht erlaubt.
Thread ansehen
Wer ist hier? 1 Gäste
[gelöst] problem Datenbankfelder anlegen
Crusher
Geschrieben am 06. Juni 2010 20:07:15
Einsteiger
Posts: 8
Registriert seit: 30.04.10
Amateur Nächstes Level: 9/25
Scores: gesperrt
Verwarnstatus:
wieviele felder kann man eigentlich anlegen, das hier funktioniert mir einfach nicht:
Code
$inf_newtable[1] = DB_SCORE_ACCOUNT." (
acc_user_id MEDIUMINT(8) NOT NULL,
acc_score MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_att MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_def MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_skill MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_exp MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_exp_max MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_level MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_energie MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_energie_max MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_healt MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_healt_max MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_power MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_power_max MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_skill MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_lagera MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_lagerb MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_lagerc MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_lagerd MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_lagere MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_lagerf MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_lagerg MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_hausa MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_hausb MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_hausc MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_hausd MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_hause MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_holz MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_lehm MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_stein MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_eisen MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_gold MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_kupfer MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_quarz MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_salz MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_a MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_b MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_c MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_d MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_e MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_f MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_g MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_h MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_i MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_j MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_k MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_l MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_m MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_n MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_o MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_p MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_q MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_r MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_s MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_t MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_u MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_v MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_w MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_x MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_y MEDIUMINT(8) NOT NULL DEFAULT '0',
acc_z MEDIUMINT(8) NOT NULL DEFAULT '0',
PRIMARY KEY (acc_user_id)
) TYPE=MyISAM;";
Editiert von Crusher am 06. Juni 2010 20:07:31
PHP F V6: Oldsite: http.//www.boardc...
PHP F V7: Noch am Testen: http://new.boardc...
PHP F V7: Clanpage: http://gas.boardc... (in arbeit)
MarcusG
Geschrieben am 06. Juni 2010 20:14:39
Posts: 2936
Registriert seit: 21.01.09
Meister Nächstes Level: 2942/5000
Scores: gesperrt
Normal gibts da keine Beschränkung. Aber wieso machst du das überhaupt über die infusion.php und legst die Felder nicht einfach im DB-Admin an?
Gruß Marcus
Support per Mail, PN, ICQ oder MSN ist kostenpflichtig!
if ($ahnung == 'keine' ) { use ( FAQ ) && ( Google | | Suche ) }
if ($antwort == 0 ) { post ( Frage ) }
Crusher
Geschrieben am 06. Juni 2010 20:22:47
Einsteiger
Posts: 8
Registriert seit: 30.04.10
Amateur Nächstes Level: 9/25
Scores: gesperrt
Verwarnstatus:
danke, wollte eigentlich ne infusion schreiben, ist sonst nicht grad elegant gelöst
PHP F V6: Oldsite: http.//www.boardc...
PHP F V7: Noch am Testen: http://new.boardc...
PHP F V7: Clanpage: http://gas.boardc... (in arbeit)
Crusher
Geschrieben am 06. Juni 2010 21:00:58
Einsteiger
Posts: 8
Registriert seit: 30.04.10
Amateur Nächstes Level: 9/25
Scores: gesperrt
Verwarnstatus:
danke, hat sich erledigt
sorry war ein schnellschuss von mir, da war schlicht und einfach nen feld doppelt.
gruss Daniel
PHP F V6: Oldsite: http.//www.boardc...
PHP F V7: Noch am Testen: http://new.boardc...
PHP F V7: Clanpage: http://gas.boardc... (in arbeit)
Springe ins Forum:
WICHTIG ! Bitte lesen!
Allgemeine Diskussionen
Grafik und Design
Gemischtes
HTML, CSS
PHP & MySql
Suchmaschinen Optimierung (SEO)
Allgemeine Support Fragen
Games, Spiele & Co.
Infusionen
Eigene Infusionen/Vorstellung
MODS & Hacks vorstellen
Sicherheitslücken
MODS & Hacks vorstellen
Allgemeine Support Fragen
Games, Spiele & Co.
Eigene Infusionen/Vorstellung
Sicherheitslücken
Neues im PHPFusion-Supportclub
Projekt sucht Entwickler...
Hinweise von unseriöses im Internet