Antworten auf deine Fragen:
Neues Thema erstellen

Antworten zum Thema „install.php problem“

rey

Der Frager ;)

hi,
habe ne install.php gebastelt allerdings erstellt er nicht die tabelle +iunhalt keine ahnung warum hier ist der code

[php:1:72582cba40]<?php
include ("_mysql.php");
mysql_connect($host, $user, $pwd) or die ('ERROR: keine verbindung zu mysql');
mysql_select_db($db) or die ('ERROR: konnte nicht zu datenbank "'.$db.'" verbinden');

mysql_query("DROP TABLE IF EXISTS ".PREFIX."begegnungen");
mysql_query("CREATE TABLE ".PREFIX."begegnungen (
ID int(11) NOT NULL auto_increment,
liga1 text NOT NULL,
chan1 text NOT NULL,
ggn1 text NOT NULL,
dat1 text NOT NULL,
resul1 text NOT NULL,
liga2 text NOT NULL,
chan2 text NOT NULL,
ggn2 text NOT NULL,
dat2 text NOT NULL,
resul2 text NOT NULL,
liga3 text NOT NULL,
chan3 text NOT NULL,
ggn3 text NOT NULL,
dat3 text NOT NULL,
resul3 text NOT NULL,
liga4 text NOT NULL,
chan4 text NOT NULL,
ggn4 text NOT NULL,
dat4 text NOT NULL,
resul4 text NOT NULL,
liga5 text NOT NULL,
chan5 text NOT NULL,
ggn5 text NOT NULL,
dat5 text NOT NULL,
resul5 text NOT NULL,
liga6 text NOT NULL,
chan6 text NOT NULL,
ggn6 text NOT NULL,
dat6 text NOT NULL,
resul6 text NOT NULL,
liga7 text NOT NULL,
chan7 text NOT NULL,
ggn7 text NOT NULL,
dat7 text NOT NULL,
resul7 text NOT NULL,
liga8 text NOT NULL,
chan8 text NOT NULL,
ggn8 text NOT NULL,
dat8 text NOT NULL,
resul8 text NOT NULL,
liga9 text NOT NULL,
chan9 text NOT NULL,
ggn9 text NOT NULL,
dat9 text NOT NULL,
resul9 text NOT NULL,
liga10 text NOT NULL,
chan10 text NOT NULL,
ggn10 text NOT NULL,
dat10 text NOT NULL,
resul10 text NOT NULL,
liga11 text NOT NULL,
chan11 text NOT NULL,
ggn11 text NOT NULL,
dat11 text NOT NULL,
resul11 text NOT NULL,
liga12 text NOT NULL,
chan12 text NOT NULL,
ggn12 text NOT NULL,
dat12 text NOT NULL,
resul12 text NOT NULL,
liga13 text NOT NULL,
chan13 text NOT NULL,
ggn13 text NOT NULL,
dat13 text NOT NULL,
resul13 text NOT NULL,
liga14 text NOT NULL,
chan14 text NOT NULL,
ggn14 text NOT NULL,
dat14 text NOT NULL,
resul14 text NOT NULL,
liga15 text NOT NULL,
chan15 text NOT NULL,
ggn15 text NOT NULL,
dat15 text NOT NULL,
resul15 text NOT NULL,
liga16 text NOT NULL,
chan16 text NOT NULL,
ggn16 text NOT NULL,
dat16 text NOT NULL,
resul16 text NOT NULL,
liga17 text NOT NULL,
chan17 text NOT NULL,
ggn17 text NOT NULL,
dat17 text NOT NULL,
resul17 text NOT NULL,
liga18 text NOT NULL,
chan18 text NOT NULL,
ggn18 text NOT NULL,
dat18 text NOT NULL,
resul18 text NOT NULL,
liga19 text NOT NULL,
chan19 text NOT NULL,
ggn19 text NOT NULL,
dat19 text NOT NULL,
resul19 text NOT NULL,
liga20 text NOT NULL,
chan20 text NOT NULL,
ggn20 text NOT NULL,
dat20 text NOT NULL,
resul20 text NOT NULL,
liga21 text NOT NULL,
chan21 text NOT NULL,
ggn21 text NOT NULL,
dat21 text NOT NULL,
resul21 text NOT NULL,
liga22 text NOT NULL,
chan22= text NOT NULL,
ggn22 text NOT NULL,
dat22 text NOT NULL,
resul22 text NOT NULL,
liga23 text NOT NULL,
chan23 text NOT NULL,
ggn23 text NOT NULL,
dat23 text NOT NULL,
resul23 text NOT NULL,
liga24 text NOT NULL,
chan24 text NOT NULL,
ggn24 text NOT NULL,
dat24 text NOT NULL,
resul24 text NOT NULL,
liga25 text NOT NULL,
chan25 text NOT NULL,
ggn25 text NOT NULL,
dat25 text NOT NULL,
resul25 text NOT NULL,
liga26 text NOT NULL,
chan26 text NOT NULL,
ggn26 text NOT NULL,
dat26 text NOT NULL,
resul26 text NOT NULL,
liga27 text NOT NULL,
chan27 text NOT NULL,
ggn27 text NOT NULL,
dat27 text NOT NULL,
resul27 text NOT NULL,
liga28 text NOT NULL,
chan28 text NOT NULL,
ggn28 text NOT NULL,
dat28 text NOT NULL,
resul28 text NOT NULL,
liga29 text NOT NULL,
chan29 text NOT NULL,
ggn29 text NOT NULL,
dat29 text NOT NULL,
resul29 text NOT NULL,
liga30 text NOT NULL,
chan30 text NOT NULL,
ggn30 text NOT NULL,
dat30 text NOT NULL,
resul30 text NOT NULL,
liga30 text NOT NULL,
chan30 text NOT NULL,
ggn30 text NOT NULL,
dat30 text NOT NULL,
resul30 text NOT NULL,
liga31 text NOT NULL,
chan31 text NOT NULL,
ggn31 text NOT NULL,
dat31 text NOT NULL,
resul31 text NOT NULL,
liga32 text NOT NULL,
chan32 text NOT NULL,
ggn32 text NOT NULL,
dat32 text NOT NULL,
resul32 text NOT NULL,
liga33 text NOT NULL,
chan33 text NOT NULL,
ggn33 text NOT NULL,
dat33 text NOT NULL,
resul33 text NOT NULL,
liga34 text NOT NULL,
chan34 text NOT NULL,
ggn34 text NOT NULL,
dat34 text NOT NULL,
resul34 text NOT NULL,
liga35 text NOT NULL,
chan35 text NOT NULL,
ggn35 text NOT NULL,
dat35 text NOT NULL,
resul35 text NOT NULL,
liga35 text NOT NULL,
chan35 text NOT NULL,
ggn35 text NOT NULL,
dat35 text NOT NULL,
resul35 text NOT NULL,
liga36 text NOT NULL,
chan36 text NOT NULL,
ggn36 text NOT NULL,
dat36 text NOT NULL,
resul36 text NOT NULL,
liga37 text NOT NULL,
chan37 text NOT NULL,
ggn37 text NOT NULL,
dat37 text NOT NULL,
resul37 text NOT NULL,
liga38 text NOT NULL,
chan38 text NOT NULL,
ggn38 text NOT NULL,
dat38 text NOT NULL,
resul38 text NOT NULL,
liga39 text NOT NULL,
chan39 text NOT NULL,
ggn39 text NOT NULL,
dat39 text NOT NULL,
resul39 text NOT NULL,
liga40 text NOT NULL,
chan40 text NOT NULL,
ggn40 text NOT NULL,
dat40 text NOT NULL,
resul40 text NOT NULL,
liga41 text NOT NULL,
chan41 text NOT NULL,
ggn41 text NOT NULL,
dat41 text NOT NULL,
resul41 text NOT NULL,
liga42 text NOT NULL,
chan42 text NOT NULL,
ggn42 text NOT NULL,
dat42 text NOT NULL,
resul42 text NOT NULL,
liga43 text NOT NULL,
chan43 text NOT NULL,
ggn43 text NOT NULL,
dat43 text NOT NULL,
resul43 text NOT NULL,
liga44 text NOT NULL,
chan44 text NOT NULL,
ggn44 text NOT NULL,
dat44 text NOT NULL,
resul44 text NOT NULL,
liga45 text NOT NULL,
chan45 text NOT NULL,
ggn45 text NOT NULL,
dat45 text NOT NULL,
resul45 text NOT NULL,
liga46 text NOT NULL,
chan46 text NOT NULL,
ggn46 text NOT NULL,
dat46 text NOT NULL,
resul46 text NOT NULL,
liga47 text NOT NULL,
chan47 text NOT NULL,
ggn47 text NOT NULL,
dat47 text NOT NULL,
resul47 text NOT NULL,
liga48 text NOT NULL,
chan48 text NOT NULL,
ggn48 text NOT NULL,
dat48 text NOT NULL,
resul48 text NOT NULL,
liga49 text NOT NULL,
chan49 text NOT NULL,
ggn49 text NOT NULL,
dat49 text NOT NULL,
resul49 text NOT NULL,
liga50 text NOT NULL,
chan50 text NOT NULL,
ggn50 text NOT NULL,
dat50 text NOT NULL,
resul50 text NOT NULL,
liga51 text NOT NULL,
chan51 text NOT NULL,
ggn51 text NOT NULL,
dat51 text NOT NULL,
resul51 text NOT NULL,
liga52 text NOT NULL,
chan52 text NOT NULL,
ggn52 text NOT NULL,
dat52 text NOT NULL,
resul52 text NOT NULL,
liga53 text NOT NULL,
chan53 text NOT NULL,
ggn53 text NOT NULL,
dat53 text NOT NULL,
resul53 text NOT NULL,
liga54 text NOT NULL,
chan54 text NOT NULL,
ggn54 text NOT NULL,
dat54 text NOT NULL,
resul54 text NOT NULL,
liga55 text NOT NULL,
chan55 text NOT NULL,
ggn55 text NOT NULL,
dat55 text NOT NULL,
resul55 text NOT NULL,
liga56 text NOT NULL,
chan56 text NOT NULL,
ggn56 text NOT NULL,
dat56 text NOT NULL,
resul56 text NOT NULL,
liga57 text NOT NULL,
chan57 text NOT NULL,
ggn57 text NOT NULL,
dat57 text NOT NULL,
resul57 text NOT NULL,
liga58 text NOT NULL,
chan58 text NOT NULL,
ggn58 text NOT NULL,
dat58 text NOT NULL,
resul58 text NOT NULL,
liga59 text NOT NULL,
chan59 text NOT NULL,
ggn59 text NOT NULL,
dat59 text NOT NULL,
resul59 text NOT NULL,
liga60 text NOT NULL,
chan60 text NOT NULL,
ggn60 text NOT NULL,
dat60 text NOT NULL,
resul60 text NOT NULL,
liga60 text NOT NULL,
chan60 text NOT NULL,
ggn60 text NOT NULL,
dat60 text NOT NULL,
resul60 text NOT NULL,
liga61 text NOT NULL,
chan61 text NOT NULL,
ggn61 text NOT NULL,
dat61 text NOT NULL,
resul61 text NOT NULL,
liga62 text NOT NULL,
chan62 text NOT NULL,
ggn62 text NOT NULL,
dat62 text NOT NULL,
resul62 text NOT NULL,
liga63 text NOT NULL,
chan63 text NOT NULL,
ggn63 text NOT NULL,
dat63 text NOT NULL,
resul63 text NOT NULL,
liga64 text NOT NULL,
chan64 text NOT NULL,
ggn64 text NOT NULL,
dat64 text NOT NULL,
resul64 text NOT NULL,
liga65 text NOT NULL,
chan65 text NOT NULL,
ggn65 text NOT NULL,
dat65 text NOT NULL,
resul65 text NOT NULL,
liga66 text NOT NULL,
chan66 text NOT NULL,
ggn66 text NOT NULL,
dat66 text NOT NULL,
resul66 text NOT NULL,
liga67 text NOT NULL,
chan67 text NOT NULL,
ggn67 text NOT NULL,
dat67 text NOT NULL,
resul67 text NOT NULL,
liga68 text NOT NULL,
chan68 text NOT NULL,
ggn68 text NOT NULL,
dat68 text NOT NULL,
resul68 text NOT NULL,
liga69 text NOT NULL,
chan69 text NOT NULL,
ggn69 text NOT NULL,
dat69 text NOT NULL,
resul69 text NOT NULL,
liga70 text NOT NULL,
chan70 text NOT NULL,
ggn70 text NOT NULL,
dat70 text NOT NULL,
resul70 text NOT NULL,
liga71 text NOT NULL,
chan71 text NOT NULL,
ggn71 text NOT NULL,
dat71 text NOT NULL,
resul71 text NOT NULL,
liga72 text NOT NULL,
chan72 text NOT NULL,
ggn72 text NOT NULL,
dat72 text NOT NULL,
resul72 text NOT NULL,
liga73 text NOT NULL,
chan73 text NOT NULL,
ggn73 text NOT NULL,
dat73 text NOT NULL,
resul73 text NOT NULL,
liga74 text NOT NULL,
chan74 text NOT NULL,
ggn74 text NOT NULL,
dat74 text NOT NULL,
resul74 text NOT NULL,
liga75 text NOT NULL,
chan75 text NOT NULL,
ggn75 text NOT NULL,
dat75 text NOT NULL,
resul75 text NOT NULL,
liga76 text NOT NULL,
chan76 text NOT NULL,
ggn76 text NOT NULL,
dat76 text NOT NULL,
resul76 text NOT NULL,
liga77 text NOT NULL,
chan77 text NOT NULL,
ggn77 text NOT NULL,
dat77 text NOT NULL,
resul77 text NOT NULL,
liga78 text NOT NULL,
chan78 text NOT NULL,
ggn78 text NOT NULL,
dat78 text NOT NULL,
resul78 text NOT NULL,
liga79 text NOT NULL,
chan79 text NOT NULL,
ggn79 text NOT NULL,
dat79 text NOT NULL,
resul79 text NOT NULL,
liga80 text NOT NULL,
chan80 text NOT NULL,
ggn80 text NOT NULL,
dat80 text NOT NULL,
resul80 text NOT NULL,
liga81 text NOT NULL,
chan81 text NOT NULL,
ggn81 text NOT NULL,
dat81 text NOT NULL,
resul81 text NOT NULL,
liga82 text NOT NULL,
chan82 text NOT NULL,
ggn82 text NOT NULL,
dat82 text NOT NULL,
resul82 text NOT NULL,
liga83 text NOT NULL,
chan83 text NOT NULL,
ggn83 text NOT NULL,
dat83 text NOT NULL,
resul83 text NOT NULL,
liga84 text NOT NULL,
chan84 text NOT NULL,
ggn84 text NOT NULL,
dat84 text NOT NULL,
resul84 text NOT NULL,
liga85 text NOT NULL,
chan85 text NOT NULL,
ggn85 text NOT NULL,
dat85 text NOT NULL,
resul85 text NOT NULL,
liga86 text NOT NULL,
chan86 text NOT NULL,
ggn86 text NOT NULL,
dat86 text NOT NULL,
resul86 text NOT NULL,
liga87 text NOT NULL,
chan87 text NOT NULL,
ggn87 text NOT NULL,
dat87 text NOT NULL,
resul87 text NOT NULL,
liga88 text NOT NULL,
chan88 text NOT NULL,
ggn88 text NOT NULL,
dat88 text NOT NULL,
resul88 text NOT NULL,
liga89 text NOT NULL,
chan89 text NOT NULL,
ggn89 text NOT NULL,
dat89 text NOT NULL,
resul89 text NOT NULL,
liga90 text NOT NULL,
chan90 text NOT NULL,
ggn90 text NOT NULL,
dat90 text NOT NULL,
resul90 text NOT NULL,
liga91 text NOT NULL,
chan91 text NOT NULL,
ggn91 text NOT NULL,
dat91 text NOT NULL,
resul91 text NOT NULL,
liga92 text NOT NULL,
chan92 text NOT NULL,
ggn92 text NOT NULL,
dat92 text NOT NULL,
resul92 text NOT NULL,
liga92 text NOT NULL,
chan92 text NOT NULL,
ggn92 text NOT NULL,
dat92 text NOT NULL,
resul92 text NOT NULL,
liga93 text NOT NULL,
chan93 text NOT NULL,
ggn93 text NOT NULL,
dat93 text NOT NULL,
resul93 text NOT NULL,
liga94 text NOT NULL,
chan94 text NOT NULL,
ggn94 text NOT NULL,
dat94 text NOT NULL,
resul94 text NOT NULL,
liga95 text NOT NULL,
chan95 text NOT NULL,
ggn95 text NOT NULL,
dat95 text NOT NULL,
resul96 text NOT NULL,
liga97 text NOT NULL,
chan97 text NOT NULL,
ggn97 text NOT NULL,
dat97 text NOT NULL,
resul97 text NOT NULL,
liga98 text NOT NULL,
chan98 text NOT NULL,
ggn98 text NOT NULL,
dat98 text NOT NULL,
resul98 text NOT NULL,
liga99 text NOT NULL,
chan99 text NOT NULL,
ggn99 text NOT NULL,
dat99 text NOT NULL,
resul99 text NOT NULL,
liga100 text NOT NULL,
chan100 text NOT NULL,
ggn100 text NOT NULL,
dat100 text NOT NULL,
resul100 text NOT NULL,
liga101 text NOT NULL,
chan101 text NOT NULL,
ggn101 text NOT NULL,
dat101 text NOT NULL,
resul101 text NOT NULL,
PRIMARY KEY (`ID`)
) TYPE=MyISAM AUTO_INCREMENT=3");
mysql_query("INSERT INTO ".PREFIX."begegnungen VALUES (2, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')");
?>[/php:1:72582cba40]

vielelicht bemerkt ja einer von euch den fehler ich habe es mir nu schon mehr 10 mal angeguckt und habe ihn nciht gefunden[/code]
 

Duddle

Posting-Frequenz: 14µHz

Entschuldigt bitte den OT, aber diese Tabelle ist doch mehr als pervers, oder? Kann mir jemand, am besten einer der beruflich wirklich mit Datenbanken zu tun hat, verraten, wozu eine Tabelle mit 500 Spalten dienen soll?!


Ne, echt jetzt mal, das tut ja weh :oops:


Duddle
 

blackout

Schaf im Wolfspelz

Häng doch einfach an die Queries ein "OR die(mysql_error())" dran

@Duddle: OPTIMIZE TABLE geht wesentlich schneller, wenn man pro Tabelle nur eine Zeile belegt hat... statt ner neuen Zeile macht man halt einfach ne neue Tabelle. Dann muss man das Ergebnis halt irgendwie über Joins ordnen. ;)
 

rey

Der Frager ;)

Duddle schrieb:
Entschuldigt bitte den OT, aber diese Tabelle ist doch mehr als pervers, oder? Kann mir jemand, am besten einer der beruflich wirklich mit Datenbanken zu tun hat, verraten, wozu eine Tabelle mit 500 Spalten dienen soll?!


Ne, echt jetzt mal, das tut ja weh :oops:


Duddle

weil ich nciht weiß wie das mit php geht das man esso programmier das man neue Begegnung hinzufügen macht. welche selbst die zeilen mti deren salten erstellt udn im nachinein noch bearbeiten kann.
 

rey

Der Frager ;)

ich habe hinter dem quellcode noch ein "<?php echo "Installation war erfolgreich!!!";?>"
und wenn ich eben die install ausführe kommt es auch soweit das es am ende heisst "Installation war erfolgreich!!!"
aber es ist dann doch nicht installiert.


@blackout

thx für den link dann kann ich das bald so gestalten das man selbst die begegnungen hinzufügen kann.
 

blackout

Schaf im Wolfspelz

Ja sicher, die Datenbank bekommt ja auch nicht die Möglichkeit sich zu melden... für PHP ist der SQL-Query nur ein String, dem ist das herzlich egal was da drin steht.
 

Tim

Hutträger

rey schrieb:
ich habe hinter dem quellcode noch ein "<?php echo "Installation war erfolgreich!!!";?>"
und wenn ich eben die install ausführe kommt es auch soweit das es am ende heisst "Installation war erfolgreich!!!"
aber es ist dann doch nicht installiert.

Witzbold. Prüfst du wenigstens, obs geklappt hat? if($query){ echo "blabla";} ??


Edit: @Duddle: Pervers ist gar kein Ausdruck :oops:
 

rey

Der Frager ;)

wo bin ich denn heir gelandet oO

es heisst immer das es geklappt hat und wenn ich dann auf die begegnungen.php zugreifen will heisst es "die tabelle begegnungen konnte nicht gefunden werden"

aber so wies aussieht findet ihr auch nicht den fehler in der install.php
 

Duddle

Posting-Frequenz: 14µHz

Hau mal diesen leicht geänderten Code in deine Datei und führ sie aus.
Wenn es zu keinen Fehlern kommt, wurde die .......... ?Tabelle? richtig erstellt und gefüllt.

[php:1:0f4b79c0a2]
<?php
include ("_mysql.php");
mysql_connect($host, $user, $pwd) or die ('ERROR: keine verbindung zu mysql');
mysql_select_db($db) or die ('ERROR: konnte nicht zu datenbank "'.$db.'" verbinden');

mysql_query("DROP TABLE IF EXISTS ".PREFIX."begegnungen") or die(mysql_error());
mysql_query("CREATE TABLE ".PREFIX."begegnungen (
ID int(11) NOT NULL auto_increment,
liga1 text NOT NULL,
chan1 text NOT NULL,
ggn1 text NOT NULL,
dat1 text NOT NULL,
resul1 text NOT NULL,
liga2 text NOT NULL,
chan2 text NOT NULL,
ggn2 text NOT NULL,
dat2 text NOT NULL,
resul2 text NOT NULL,
liga3 text NOT NULL,
chan3 text NOT NULL,
ggn3 text NOT NULL,
dat3 text NOT NULL,
resul3 text NOT NULL,
liga4 text NOT NULL,
chan4 text NOT NULL,
ggn4 text NOT NULL,
dat4 text NOT NULL,
resul4 text NOT NULL,
liga5 text NOT NULL,
chan5 text NOT NULL,
ggn5 text NOT NULL,
dat5 text NOT NULL,
resul5 text NOT NULL,
liga6 text NOT NULL,
chan6 text NOT NULL,
ggn6 text NOT NULL,
dat6 text NOT NULL,
resul6 text NOT NULL,
liga7 text NOT NULL,
chan7 text NOT NULL,
ggn7 text NOT NULL,
dat7 text NOT NULL,
resul7 text NOT NULL,
liga8 text NOT NULL,
chan8 text NOT NULL,
ggn8 text NOT NULL,
dat8 text NOT NULL,
resul8 text NOT NULL,
liga9 text NOT NULL,
chan9 text NOT NULL,
ggn9 text NOT NULL,
dat9 text NOT NULL,
resul9 text NOT NULL,
liga10 text NOT NULL,
chan10 text NOT NULL,
ggn10 text NOT NULL,
dat10 text NOT NULL,
resul10 text NOT NULL,
liga11 text NOT NULL,
chan11 text NOT NULL,
ggn11 text NOT NULL,
dat11 text NOT NULL,
resul11 text NOT NULL,
liga12 text NOT NULL,
chan12 text NOT NULL,
ggn12 text NOT NULL,
dat12 text NOT NULL,
resul12 text NOT NULL,
liga13 text NOT NULL,
chan13 text NOT NULL,
ggn13 text NOT NULL,
dat13 text NOT NULL,
resul13 text NOT NULL,
liga14 text NOT NULL,
chan14 text NOT NULL,
ggn14 text NOT NULL,
dat14 text NOT NULL,
resul14 text NOT NULL,
liga15 text NOT NULL,
chan15 text NOT NULL,
ggn15 text NOT NULL,
dat15 text NOT NULL,
resul15 text NOT NULL,
liga16 text NOT NULL,
chan16 text NOT NULL,
ggn16 text NOT NULL,
dat16 text NOT NULL,
resul16 text NOT NULL,
liga17 text NOT NULL,
chan17 text NOT NULL,
ggn17 text NOT NULL,
dat17 text NOT NULL,
resul17 text NOT NULL,
liga18 text NOT NULL,
chan18 text NOT NULL,
ggn18 text NOT NULL,
dat18 text NOT NULL,
resul18 text NOT NULL,
liga19 text NOT NULL,
chan19 text NOT NULL,
ggn19 text NOT NULL,
dat19 text NOT NULL,
resul19 text NOT NULL,
liga20 text NOT NULL,
chan20 text NOT NULL,
ggn20 text NOT NULL,
dat20 text NOT NULL,
resul20 text NOT NULL,
liga21 text NOT NULL,
chan21 text NOT NULL,
ggn21 text NOT NULL,
dat21 text NOT NULL,
resul21 text NOT NULL,
liga22 text NOT NULL,
chan22= text NOT NULL,
ggn22 text NOT NULL,
dat22 text NOT NULL,
resul22 text NOT NULL,
liga23 text NOT NULL,
chan23 text NOT NULL,
ggn23 text NOT NULL,
dat23 text NOT NULL,
resul23 text NOT NULL,
liga24 text NOT NULL,
chan24 text NOT NULL,
ggn24 text NOT NULL,
dat24 text NOT NULL,
resul24 text NOT NULL,
liga25 text NOT NULL,
chan25 text NOT NULL,
ggn25 text NOT NULL,
dat25 text NOT NULL,
resul25 text NOT NULL,
liga26 text NOT NULL,
chan26 text NOT NULL,
ggn26 text NOT NULL,
dat26 text NOT NULL,
resul26 text NOT NULL,
liga27 text NOT NULL,
chan27 text NOT NULL,
ggn27 text NOT NULL,
dat27 text NOT NULL,
resul27 text NOT NULL,
liga28 text NOT NULL,
chan28 text NOT NULL,
ggn28 text NOT NULL,
dat28 text NOT NULL,
resul28 text NOT NULL,
liga29 text NOT NULL,
chan29 text NOT NULL,
ggn29 text NOT NULL,
dat29 text NOT NULL,
resul29 text NOT NULL,
liga30 text NOT NULL,
chan30 text NOT NULL,
ggn30 text NOT NULL,
dat30 text NOT NULL,
resul30 text NOT NULL,
liga30 text NOT NULL,
chan30 text NOT NULL,
ggn30 text NOT NULL,
dat30 text NOT NULL,
resul30 text NOT NULL,
liga31 text NOT NULL,
chan31 text NOT NULL,
ggn31 text NOT NULL,
dat31 text NOT NULL,
resul31 text NOT NULL,
liga32 text NOT NULL,
chan32 text NOT NULL,
ggn32 text NOT NULL,
dat32 text NOT NULL,
resul32 text NOT NULL,
liga33 text NOT NULL,
chan33 text NOT NULL,
ggn33 text NOT NULL,
dat33 text NOT NULL,
resul33 text NOT NULL,
liga34 text NOT NULL,
chan34 text NOT NULL,
ggn34 text NOT NULL,
dat34 text NOT NULL,
resul34 text NOT NULL,
liga35 text NOT NULL,
chan35 text NOT NULL,
ggn35 text NOT NULL,
dat35 text NOT NULL,
resul35 text NOT NULL,
liga35 text NOT NULL,
chan35 text NOT NULL,
ggn35 text NOT NULL,
dat35 text NOT NULL,
resul35 text NOT NULL,
liga36 text NOT NULL,
chan36 text NOT NULL,
ggn36 text NOT NULL,
dat36 text NOT NULL,
resul36 text NOT NULL,
liga37 text NOT NULL,
chan37 text NOT NULL,
ggn37 text NOT NULL,
dat37 text NOT NULL,
resul37 text NOT NULL,
liga38 text NOT NULL,
chan38 text NOT NULL,
ggn38 text NOT NULL,
dat38 text NOT NULL,
resul38 text NOT NULL,
liga39 text NOT NULL,
chan39 text NOT NULL,
ggn39 text NOT NULL,
dat39 text NOT NULL,
resul39 text NOT NULL,
liga40 text NOT NULL,
chan40 text NOT NULL,
ggn40 text NOT NULL,
dat40 text NOT NULL,
resul40 text NOT NULL,
liga41 text NOT NULL,
chan41 text NOT NULL,
ggn41 text NOT NULL,
dat41 text NOT NULL,
resul41 text NOT NULL,
liga42 text NOT NULL,
chan42 text NOT NULL,
ggn42 text NOT NULL,
dat42 text NOT NULL,
resul42 text NOT NULL,
liga43 text NOT NULL,
chan43 text NOT NULL,
ggn43 text NOT NULL,
dat43 text NOT NULL,
resul43 text NOT NULL,
liga44 text NOT NULL,
chan44 text NOT NULL,
ggn44 text NOT NULL,
dat44 text NOT NULL,
resul44 text NOT NULL,
liga45 text NOT NULL,
chan45 text NOT NULL,
ggn45 text NOT NULL,
dat45 text NOT NULL,
resul45 text NOT NULL,
liga46 text NOT NULL,
chan46 text NOT NULL,
ggn46 text NOT NULL,
dat46 text NOT NULL,
resul46 text NOT NULL,
liga47 text NOT NULL,
chan47 text NOT NULL,
ggn47 text NOT NULL,
dat47 text NOT NULL,
resul47 text NOT NULL,
liga48 text NOT NULL,
chan48 text NOT NULL,
ggn48 text NOT NULL,
dat48 text NOT NULL,
resul48 text NOT NULL,
liga49 text NOT NULL,
chan49 text NOT NULL,
ggn49 text NOT NULL,
dat49 text NOT NULL,
resul49 text NOT NULL,
liga50 text NOT NULL,
chan50 text NOT NULL,
ggn50 text NOT NULL,
dat50 text NOT NULL,
resul50 text NOT NULL,
liga51 text NOT NULL,
chan51 text NOT NULL,
ggn51 text NOT NULL,
dat51 text NOT NULL,
resul51 text NOT NULL,
liga52 text NOT NULL,
chan52 text NOT NULL,
ggn52 text NOT NULL,
dat52 text NOT NULL,
resul52 text NOT NULL,
liga53 text NOT NULL,
chan53 text NOT NULL,
ggn53 text NOT NULL,
dat53 text NOT NULL,
resul53 text NOT NULL,
liga54 text NOT NULL,
chan54 text NOT NULL,
ggn54 text NOT NULL,
dat54 text NOT NULL,
resul54 text NOT NULL,
liga55 text NOT NULL,
chan55 text NOT NULL,
ggn55 text NOT NULL,
dat55 text NOT NULL,
resul55 text NOT NULL,
liga56 text NOT NULL,
chan56 text NOT NULL,
ggn56 text NOT NULL,
dat56 text NOT NULL,
resul56 text NOT NULL,
liga57 text NOT NULL,
chan57 text NOT NULL,
ggn57 text NOT NULL,
dat57 text NOT NULL,
resul57 text NOT NULL,
liga58 text NOT NULL,
chan58 text NOT NULL,
ggn58 text NOT NULL,
dat58 text NOT NULL,
resul58 text NOT NULL,
liga59 text NOT NULL,
chan59 text NOT NULL,
ggn59 text NOT NULL,
dat59 text NOT NULL,
resul59 text NOT NULL,
liga60 text NOT NULL,
chan60 text NOT NULL,
ggn60 text NOT NULL,
dat60 text NOT NULL,
resul60 text NOT NULL,
liga60 text NOT NULL,
chan60 text NOT NULL,
ggn60 text NOT NULL,
dat60 text NOT NULL,
resul60 text NOT NULL,
liga61 text NOT NULL,
chan61 text NOT NULL,
ggn61 text NOT NULL,
dat61 text NOT NULL,
resul61 text NOT NULL,
liga62 text NOT NULL,
chan62 text NOT NULL,
ggn62 text NOT NULL,
dat62 text NOT NULL,
resul62 text NOT NULL,
liga63 text NOT NULL,
chan63 text NOT NULL,
ggn63 text NOT NULL,
dat63 text NOT NULL,
resul63 text NOT NULL,
liga64 text NOT NULL,
chan64 text NOT NULL,
ggn64 text NOT NULL,
dat64 text NOT NULL,
resul64 text NOT NULL,
liga65 text NOT NULL,
chan65 text NOT NULL,
ggn65 text NOT NULL,
dat65 text NOT NULL,
resul65 text NOT NULL,
liga66 text NOT NULL,
chan66 text NOT NULL,
ggn66 text NOT NULL,
dat66 text NOT NULL,
resul66 text NOT NULL,
liga67 text NOT NULL,
chan67 text NOT NULL,
ggn67 text NOT NULL,
dat67 text NOT NULL,
resul67 text NOT NULL,
liga68 text NOT NULL,
chan68 text NOT NULL,
ggn68 text NOT NULL,
dat68 text NOT NULL,
resul68 text NOT NULL,
liga69 text NOT NULL,
chan69 text NOT NULL,
ggn69 text NOT NULL,
dat69 text NOT NULL,
resul69 text NOT NULL,
liga70 text NOT NULL,
chan70 text NOT NULL,
ggn70 text NOT NULL,
dat70 text NOT NULL,
resul70 text NOT NULL,
liga71 text NOT NULL,
chan71 text NOT NULL,
ggn71 text NOT NULL,
dat71 text NOT NULL,
resul71 text NOT NULL,
liga72 text NOT NULL,
chan72 text NOT NULL,
ggn72 text NOT NULL,
dat72 text NOT NULL,
resul72 text NOT NULL,
liga73 text NOT NULL,
chan73 text NOT NULL,
ggn73 text NOT NULL,
dat73 text NOT NULL,
resul73 text NOT NULL,
liga74 text NOT NULL,
chan74 text NOT NULL,
ggn74 text NOT NULL,
dat74 text NOT NULL,
resul74 text NOT NULL,
liga75 text NOT NULL,
chan75 text NOT NULL,
ggn75 text NOT NULL,
dat75 text NOT NULL,
resul75 text NOT NULL,
liga76 text NOT NULL,
chan76 text NOT NULL,
ggn76 text NOT NULL,
dat76 text NOT NULL,
resul76 text NOT NULL,
liga77 text NOT NULL,
chan77 text NOT NULL,
ggn77 text NOT NULL,
dat77 text NOT NULL,
resul77 text NOT NULL,
liga78 text NOT NULL,
chan78 text NOT NULL,
ggn78 text NOT NULL,
dat78 text NOT NULL,
resul78 text NOT NULL,
liga79 text NOT NULL,
chan79 text NOT NULL,
ggn79 text NOT NULL,
dat79 text NOT NULL,
resul79 text NOT NULL,
liga80 text NOT NULL,
chan80 text NOT NULL,
ggn80 text NOT NULL,
dat80 text NOT NULL,
resul80 text NOT NULL,
liga81 text NOT NULL,
chan81 text NOT NULL,
ggn81 text NOT NULL,
dat81 text NOT NULL,
resul81 text NOT NULL,
liga82 text NOT NULL,
chan82 text NOT NULL,
ggn82 text NOT NULL,
dat82 text NOT NULL,
resul82 text NOT NULL,
liga83 text NOT NULL,
chan83 text NOT NULL,
ggn83 text NOT NULL,
dat83 text NOT NULL,
resul83 text NOT NULL,
liga84 text NOT NULL,
chan84 text NOT NULL,
ggn84 text NOT NULL,
dat84 text NOT NULL,
resul84 text NOT NULL,
liga85 text NOT NULL,
chan85 text NOT NULL,
ggn85 text NOT NULL,
dat85 text NOT NULL,
resul85 text NOT NULL,
liga86 text NOT NULL,
chan86 text NOT NULL,
ggn86 text NOT NULL,
dat86 text NOT NULL,
resul86 text NOT NULL,
liga87 text NOT NULL,
chan87 text NOT NULL,
ggn87 text NOT NULL,
dat87 text NOT NULL,
resul87 text NOT NULL,
liga88 text NOT NULL,
chan88 text NOT NULL,
ggn88 text NOT NULL,
dat88 text NOT NULL,
resul88 text NOT NULL,
liga89 text NOT NULL,
chan89 text NOT NULL,
ggn89 text NOT NULL,
dat89 text NOT NULL,
resul89 text NOT NULL,
liga90 text NOT NULL,
chan90 text NOT NULL,
ggn90 text NOT NULL,
dat90 text NOT NULL,
resul90 text NOT NULL,
liga91 text NOT NULL,
chan91 text NOT NULL,
ggn91 text NOT NULL,
dat91 text NOT NULL,
resul91 text NOT NULL,
liga92 text NOT NULL,
chan92 text NOT NULL,
ggn92 text NOT NULL,
dat92 text NOT NULL,
resul92 text NOT NULL,
liga92 text NOT NULL,
chan92 text NOT NULL,
ggn92 text NOT NULL,
dat92 text NOT NULL,
resul92 text NOT NULL,
liga93 text NOT NULL,
chan93 text NOT NULL,
ggn93 text NOT NULL,
dat93 text NOT NULL,
resul93 text NOT NULL,
liga94 text NOT NULL,
chan94 text NOT NULL,
ggn94 text NOT NULL,
dat94 text NOT NULL,
resul94 text NOT NULL,
liga95 text NOT NULL,
chan95 text NOT NULL,
ggn95 text NOT NULL,
dat95 text NOT NULL,
resul96 text NOT NULL,
liga97 text NOT NULL,
chan97 text NOT NULL,
ggn97 text NOT NULL,
dat97 text NOT NULL,
resul97 text NOT NULL,
liga98 text NOT NULL,
chan98 text NOT NULL,
ggn98 text NOT NULL,
dat98 text NOT NULL,
resul98 text NOT NULL,
liga99 text NOT NULL,
chan99 text NOT NULL,
ggn99 text NOT NULL,
dat99 text NOT NULL,
resul99 text NOT NULL,
liga100 text NOT NULL,
chan100 text NOT NULL,
ggn100 text NOT NULL,
dat100 text NOT NULL,
resul100 text NOT NULL,
liga101 text NOT NULL,
chan101 text NOT NULL,
ggn101 text NOT NULL,
dat101 text NOT NULL,
resul101 text NOT NULL,
PRIMARY KEY (`ID`)
) TYPE=MyISAM AUTO_INCREMENT=3") or die(mysql_error());
mysql_query("INSERT INTO ".PREFIX."begegnungen VALUES (2, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')") or die(mysql_error());
?>
[/php:1:0f4b79c0a2]


Duddle
 

Tim

Hutträger

Oh man.

Alsoo.. du gibts unten einfach nur ein echo aus. Natürlich gibt er das aus, er bricht ja nicht ab.

Damit er dir mit dem echo auch sagen kann, obs wirklich geklappt hat brauchst du eine if-Abfrage, mit welcher du prüfst ob der Query true zurückgibt.

Noch besser wäre natürlich blackouts Lösung, da wird auch gleich ein Error ausgegeben.
 

CIX88

Aktives Mitglied

aber diese Tabelle ist doch mehr als pervers
Da muss ich auch mal zustimmen !

Um Gottes willen, überleg dir dein Konzept.
Fast alle Inhalte sind vom Typ text eingestellt, das wird dir später das Genick brechen.
Da sowas recht viel vom Server abverlangt, wird dieser sich freuen.
Von Performance will ich garnichts erst anfangen.

Ne ne ne, so kannste das nicht in eine Datenbank einfügen !
Und überlege noch mal, ob es wirklich Sinn macht, alle Inhalte auf ?text? zu setzen.
 

saila

Moderatorle

8O Poah..... so ne Tabelle hab ich noch nicht gesehen.... :lol:
Alle Spaltentypen auf TEXT ....


Was willst du mit dieser Tabelle bezwecken?!
 

blackout

Schaf im Wolfspelz

Naja, wenn man faul ist, ist Text schon der richtige Typ... Das ist ungefähr so, wie wenn man mit dem Auto zum Zigarettenautomaten fährt - sinnlos, aber tut seinen Zweck (allerdings mehr schlecht als recht).
 

saila

Moderatorle

ob das der richtige Type ist, hängt davon ab, was rein kommt. Wenn er wirklich Texte in die Tabelle setzen will, dann säuft ihm die ganze Tabelle nach entsprechenden Einträgen ab. Allerdings nur dann, wenn nicht zuvor das Script bzgl. timeout abbricht.

Mich würde das Konzept interessieren. Weil jegliche Hilfe in diesem Fall schwachsinn ist. Wenn helfen, dann kann man auch die Tabelle insgesamt verbessern. Im besten Fall aufteilen in mehrere Tabellen, was auch den Spalten deutlich ersichtlich wird.
 

CIX88

Aktives Mitglied

somit ist es eine übergangs lösung

Bei dem Spaltentyp text reserviert MySQL den Speicherbedarf für 65000 Zeichen.
Und das nur für eine Spalte !
Bei dem Beispiel sind es wohl 520 Spalten x 65000 Zeichen = 33800000 Zeichen pro einen Datensatz !

Soll später in diesem Spaltentyp gesucht werden, kann dies die Scriptausführung beenden bzw. MySQL mit toten Prozessen sich aufhängt.
Weil einfach der Speicherbedarf nicht mehr ausreicht.

Man sollte prüfen, ob nicht der Spaltentyp varchar (bis 255 Zeichen) ausreichen würde, falls Text gespeichert werden soll.

Klar jeder hat mal angefangen, und man ist sich erstmal gar nicht bewusst, was man für Mist baut.
Umso wichtiger ist es aber dann auch, dass man sich hinsetzt, und damit intensiv befasst, bevor man solchen Strukturen anlegt.

Auch wäre es eine Überlegung wert, bestimmte Daten in mehrere Tabellen aufzuteilen.
Damit spätere Querys auch schnell genug aufgeführt werden, und nicht im Stillstand der DB enden.

So wie es jetzt ist kann es auf keinen Fall bleiben.
 

rey

Der Frager ;)

die idee ist wie folgt.

man soll als benutzer der die entsprechenden rechte hat. Begegnungen eintragen können. und bearbeiten können. eine zeile hat 6 spalten. und zwar LIGA; CHANNEL; SQUAD; GEGNER;DATUM;ERGEBNIS.

da ich allerdings nicht weiß wie man das macht. ALso das man per php befehlt z.B. auf "Begegnung hinzufügen" klickt. Um dan eine Begegnungen hinzuzufügen und die spalten ausfüllen. kann. und desweitern wieder auf einen btn klicken kann"begegnung bearbeiten".

ich allerdings weiß nicht wie so etwas geht deshalb dachte ich mir.
ich mache eben die 100 begegnungen in zeilen schon vor und dan eben nur die eintargung dynamisch lassen. Mir ist auch klar das es einfach nur mist ist was ich da fabrizir.

wisst Ihr nun was die idee ist ?
 

Duddle

Posting-Frequenz: 14µHz

rey schrieb:
da ich allerdings nicht weiß wie man das macht. ALso das man per php befehlt z.B. auf "Begegnung hinzufügen" klickt. Um dan eine Begegnungen hinzuzufügen und die spalten ausfüllen. kann. und desweitern wieder auf einen btn klicken kann"begegnung bearbeiten".

Aber genau dafür sind wir doch hier :)

Wenn man nicht weiss, wie etwas geht, lernt man es. Und wenn man keinen Ansatz hat, fragt man Leute, die was davon verstehen.

Beispiel:
einfaches Formular mit PHP
Anstatt direkt auszugeben, speicherst du diese $_POST-Daten eben in der Datenbank:






Lies die ganzen Links durch und probier sie bei einer Testanwendung. Informier dich aber auch über die Datentypen von SQL: 1 - 2

Wenn du dann konkrete Fragen hast, stell sie hier.


Duddle
 
Bilder bitte hier hochladen und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Antworten auf deine Fragen:
Neues Thema erstellen

Willkommen auf PSD-Tutorials.de

In unseren Foren vernetzt du dich mit anderen Personen, um dich rund um die Themen Fotografie, Grafik, Gestaltung, Bildbearbeitung und 3D auszutauschen. Außerdem schalten wir für dich regelmäßig kostenlose Inhalte frei. Liebe Grüße senden dir die PSD-Gründer Stefan und Matthias Petri aus Waren an der Müritz. Hier erfährst du mehr über uns.

Stefan und Matthias Petri von PSD-Tutorials.de

Nächster neuer Gratisinhalt

03
Stunden
:
:
25
Minuten
:
:
19
Sekunden

Neueste Themen & Antworten

Flatrate für Tutorials, Assets, Vorlagen

Zurzeit aktive Besucher

Keine Mitglieder online.

Statistik des Forums

Themen
175.158
Beiträge
2.581.869
Mitglieder
67.224
Neuestes Mitglied
Aliyah79
Oben