Beiträge von Truck007

    Hallo
    danke für deine antwort.


    Also ich hab hier mal den code:


    aber wenn ich das gleich auf die erste seite mache, wo noch kein Ajax benutzt worden ist, steht das ja auch schon über.


    MFG Truck007

    Hallo Zussammen,
    ich hab ein Problem:


    ich hab ne Seite, in der Seite einen Navigation und ein Main Teil(Conntent bereich)
    wenn ich in diesen bereich etwas drinn habe hab ich eine minimal höhe angegeben.
    diese wird auch ausgeführt. wenn ich aber nun einnen link anklicke und die nechste Seite mit ajax geladen wird ist mehr schrift drinn und die Schrifft geht über diesen bereich und es sieht demendsprehcnend auch so aus( unschön ^^)
    nun meine Frage wie bekomm ich das hin, dass der Bereich soch vergrößert wenn mehr Text reinkommt.
    AM laden mit ajax kanns net iegen denn wenn ich gleich auf ie erste seite soviel Text mache dann steht es trotzdem über.


    bitte umSChnelle Hilfe.


    Code:
    HTML(vom mainbereich):

    PHP
    1. <span class="syntaxdefault"><br /></span><span class="syntaxkeyword"><</span><span class="syntaxdefault">div id</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"main_background"</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword"><</span><span class="syntaxdefault">div id</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"main_conntent"</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">        </span><span class="syntaxkeyword"><</span><span class="syntaxdefault">h1</span><span class="syntaxkeyword">></span><span class="syntaxdefault">Willkommen</span><span class="syntaxkeyword">!!!</</span><span class="syntaxdefault">h1</span><span class="syntaxkeyword">><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/><br /></span><span class="syntaxdefault">        Sie benfinden sich gerade auf der neunen Website Der SUHHM</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">AG</span><span class="syntaxkeyword">.<br /></span><span class="syntaxdefault">        Klicken sie sich doch mal durch die Navigation um mehr </span><span class="syntaxkeyword">&</span><span class="syntaxdefault">uuml</span><span class="syntaxkeyword">;</span><span class="syntaxdefault">ber uns zu erfahren</span><span class="syntaxkeyword">.</span><span class="syntaxdefault"> </span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/><br /></span><span class="syntaxdefault">        Diese Website ist noch im Auf bau und wird noch nicht von allen Browsern unterst</span><span class="syntaxkeyword">&</span><span class="syntaxdefault">uuml</span><span class="syntaxkeyword">;</span><span class="syntaxdefault">tzt</span><span class="syntaxkeyword">!<br /></span><span class="syntaxdefault">    adfsdf</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">SDFAASDF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FASD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FASD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FA</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">SDF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">SDAF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ASD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FSD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FASD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FAS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">DFS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ADFSD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ADFAS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">DFAS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">F</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ASDF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ASDF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">SDFA</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/><br /></span><span class="syntaxdefault">adfsdf</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">SDFAASDF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FASD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FASD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FA</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">SDF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">SDAF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ASD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FSD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FASD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FAS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">DFS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ADFSD</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">FS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ADFAS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">DFAS</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">F</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ASDF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">ASDF</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/></span><span class="syntaxdefault">SDFA</span><span class="syntaxkeyword"><</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/><br /><br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword"></</span><span class="syntaxdefault">div</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword"><</span><span class="syntaxdefault">div id</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"main_news"</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">        </span><span class="syntaxkeyword"><</span><span class="syntaxdefault">h3</span><span class="syntaxkeyword">></span><span class="syntaxdefault">News</span><span class="syntaxkeyword"></</span><span class="syntaxdefault">h3</span><span class="syntaxkeyword">><br /><br /><br /><br /></span><span class="syntaxdefault">        </span><span class="syntaxkeyword"><</span><span class="syntaxdefault">div class</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"news_block_background"</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">            </span><span class="syntaxkeyword"><</span><span class="syntaxdefault">p class</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"news_headline"</span><span class="syntaxkeyword">></span><span class="syntaxdefault">Neue Website</span><span class="syntaxkeyword"></</span><span class="syntaxdefault">p</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">            Dies ist eine neue Website und wird noch erstellt</span><span class="syntaxkeyword">!<</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/><br /></span><span class="syntaxdefault">            Derzeitige Optimierung f</span><span class="syntaxkeyword">&</span><span class="syntaxdefault">uuml</span><span class="syntaxkeyword">;</span><span class="syntaxdefault">r Browser</span><span class="syntaxkeyword">:<</span><span class="syntaxdefault">br </span><span class="syntaxkeyword">/><br /></span><span class="syntaxdefault">            Mozilla Firefox<br />        </span><span class="syntaxkeyword"></</span><span class="syntaxdefault">div</span><span class="syntaxkeyword">><br /><br /><br /></span><span class="syntaxdefault">        </span><span class="syntaxkeyword"><</span><span class="syntaxdefault">div class</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"news_block_background"</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">            </span><span class="syntaxkeyword"><</span><span class="syntaxdefault">p class</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"news_headline"</span><span class="syntaxkeyword">></span><span class="syntaxdefault">Umwandlung Zur S</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">Gmbh</span><span class="syntaxkeyword"></</span><span class="syntaxdefault">p</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">            Wir haben nun beschlossen</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> dass wir unser Sch</span><span class="syntaxkeyword">&</span><span class="syntaxdefault">uuml</span><span class="syntaxkeyword">;</span><span class="syntaxdefault">lerunternehmen von einenr Aktiengeselschaft<br />            in eine Sch</span><span class="syntaxkeyword">&</span><span class="syntaxdefault">uuml</span><span class="syntaxkeyword">;</span><span class="syntaxdefault">ler</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">Gmbh umwandeln</span><span class="syntaxkeyword">.<br /></span><span class="syntaxdefault">        </span><span class="syntaxkeyword"></</span><span class="syntaxdefault">div</span><span class="syntaxkeyword">><br /><br /><br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword"></</span><span class="syntaxdefault">div</span><span class="syntaxkeyword">><br /></</span><span class="syntaxdefault">div</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault"> </span>


    vom CSS(nur Main bereich und news):

    PHP
    1. <span class="syntaxdefault"><br /></span><span class="syntaxcomment">#main_background {<br /></span><span class="syntaxdefault">    position</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> relative</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    margin</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 0 auto</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    width</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 980px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    margin</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">top</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 200px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    min</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">height</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 560px</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    background</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">color</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> </span><span class="syntaxcomment">#FFF;<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">-</span><span class="syntaxdefault">moz</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">box</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">shadow</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">-</span><span class="syntaxdefault">5px 0px 8px </span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1px </span><span class="syntaxcomment">#909090, 5px 0px 8px -1px #909090;<br /></span><span class="syntaxdefault">  </span><span class="syntaxcomment">/*   border-color: #000;<br />    border-left-style: solid;<br />    border-left-width: 1px;<br />    border-right-style: solid;<br />    border-right-width: 1px;*/<br />/*     -moz-box-shadow: 0px 5px 10px 0px #909090;   */<br /></span><span class="syntaxkeyword">}<br /></span><span class="syntaxcomment">#main_conntent {<br /></span><span class="syntaxdefault">    float</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> left</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    margin</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 5px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    padding</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 5px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    height</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 100</span><span class="syntaxkeyword">%;<br /></span><span class="syntaxdefault">    width</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 700px</span><span class="syntaxkeyword">;<br />}<br /></span><span class="syntaxcomment">#main_conntent h1 {<br /></span><span class="syntaxdefault">    text</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">align</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> center</span><span class="syntaxkeyword">;<br /><br />}<br /></span><span class="syntaxcomment">#main_left {<br /></span><span class="syntaxdefault">    margin</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">left</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 0px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    height</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 100</span><span class="syntaxkeyword">%;<br /></span><span class="syntaxdefault">    width</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 55px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    background</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">image</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">-</span><span class="syntaxdefault">moz</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">linear</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">gradient</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">rgba</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">180</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">180</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">180</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0.2</span><span class="syntaxkeyword">),</span><span class="syntaxdefault"> rgba</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">154</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">154</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">154</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0.8</span><span class="syntaxkeyword">));<br />}<br /></span><span class="syntaxcomment">#main_news {<br /></span><span class="syntaxdefault">    float</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> right</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    overflow</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> hidden</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    width</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 192px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    height</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 100</span><span class="syntaxkeyword">%;<br /></span><span class="syntaxdefault">    border</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">left</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">color</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> </span><span class="syntaxcomment">#0054FF;<br /></span><span class="syntaxdefault">    border</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">left</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">width</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 1px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    border</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">left</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">style</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> solid</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    padding</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 10px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    margin</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">top</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 5px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    margin</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">bottom</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 5px</span><span class="syntaxkeyword">;<br />}<br /></span><span class="syntaxcomment">#main_news h3<br /></span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">    margin</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">top</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 3px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    text</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">align</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> center</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    border</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">bottom</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">color</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> </span><span class="syntaxcomment">#0054FF;<br /></span><span class="syntaxdefault">    border</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">bottom</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">style</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> solid</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    border</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">bottom</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">width</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 1px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    font</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">size</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> medium</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    font</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">weight</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> lighter</span><span class="syntaxkeyword">;<br />}<br />.</span><span class="syntaxdefault">news_block_background </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">    background</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">color</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> rgba</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">162</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">162</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">162</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0.4</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">-</span><span class="syntaxdefault">moz</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">border</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">radius</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 5px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    width</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 175px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    height</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> auto</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    border</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> solid 4px rgba</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">162</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">162</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">162</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0.2</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    padding</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 1px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    margin</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">top</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 10px</span><span class="syntaxkeyword">;<br />}<br />.</span><span class="syntaxdefault">news_headline </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">    background</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">color</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> rgba</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">162</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">162</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">162</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0.2</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    margin</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 0px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    padding</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">left</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 5px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    width</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 171px</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    height</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 2em</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    line</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">height</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> 2em</span><span class="syntaxkeyword">;<br />}<br /></span><span class="syntaxdefault"> </span>


    Bitte um schnelle Hilfe.


    MFG Truck007

    Also bei mir isder Desktop:


    Ich finde Der Desktop ist nur ein ordner der etwas mehr gafischer dargestellt ist.(hintergrundbild)
    das h. bBild ab ich auch deshalb gelich so gelassen (sieht nich schlecht aus).


    mein desktop:

    (wes jemand wie das geht?)

    Dateien

    • desktop.JPG

      (169,18 kB, 301 Mal heruntergeladen, zuletzt: )

    Hallo erstmal.


    Ich hatte schonmal in vergangenheit ein thema über xajax geschrieben weil es immer nicht ging nun hab ich es endlich zum
    Laufen gebracht. da hab ich mir gedacht mal so zur übung mal einen kleinn chat zu kreiren.
    Bei mir auf dne localhost funktioniert er einwandfrei aba auf meinen webspace wird im chatverlaufs feld immer das ausgegeben { hat Geschrieben {
    am anfang steht der name der den text geschrieben hat und die zweite geschweifte Klammer soll te eigentlich der inhalt sein.
    hier mal der quelltext:
    natürlich gibt es eine vorseite wo der Name abgefragt wird und erst dann kann mann in den chat das auch funktioniert!!!

    Code
    1. <span class="syntaxhtml"><br /><span class="syntaxdefault"><?php<br />session_start</span><span class="syntaxkeyword">();<br /></span><span class="syntaxdefault">error_reporting</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">);<br /><br />require_once(</span><span class="syntaxstring">'xajax/xajax_core/xajax.inc.php'</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">$xajax </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> new xajax</span><span class="syntaxkeyword">();<br /></span><span class="syntaxdefault">$xajax</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">configure</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'javascript URI'</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">'./xajax/'</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">$xajax</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">configure</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'setCharEncoding'</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">'ISO-8859-1'</span><span class="syntaxcomment">/* 'UTF-8' */</span><span class="syntaxkeyword">);<br /></span><span class="syntaxcomment">//$xajax->configure('setFlag', "decodeUTF8Input", true);<br />//$xajax->configure('debug', true);<br /><br /></span><span class="syntaxdefault">function schreiben</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$schreiben</span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">    $obj </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> new xajaxResponse</span><span class="syntaxkeyword">();<br /></span><span class="syntaxdefault">    $inhalt1 </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> nl2br</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">trim</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$schreiben</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'schreiben_schreibfeld'</span><span class="syntaxkeyword">]));<br /></span><span class="syntaxdefault">    $inhalt </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $schreiben</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'absenden_schreibername'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">.</span><span class="syntaxdefault"> </span><span class="syntaxstring">" hat Geschrieben: "</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">.</span><span class="syntaxdefault"> $inhalt1 </span><span class="syntaxkeyword">.</span><span class="syntaxdefault"> </span><span class="syntaxstring">"<br />"</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">       $handle </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> fopen</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"chatverlauf.txt"</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">"a"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">       fwrite</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$handle</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> $inhalt</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">       fclose</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$handle</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    $empty </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"Schreiben sie hier ihre nachicht"</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    $obj</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">assign</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'writingfield'</span><span class="syntaxkeyword">,</span><span class="syntaxstring">'value'</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> $empty</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    return $obj</span><span class="syntaxkeyword">;<br />}<br /></span><span class="syntaxdefault">function display</span><span class="syntaxkeyword">()<br />{<br /></span><span class="syntaxdefault">       $handle </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> fopen</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"chatverlauf.txt"</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">"r"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">       $inhalt10 </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> fgets</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$handle</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> filesize</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'chatverlauf.txt'</span><span class="syntaxkeyword">));<br /></span><span class="syntaxdefault">       fclose</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$handle</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    $objResponse </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> new xajaxResponse</span><span class="syntaxkeyword">();<br /></span><span class="syntaxdefault">    $objResponse</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">assign</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'display'</span><span class="syntaxkeyword">,</span><span class="syntaxstring">'innerHTML'</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> $inhalt10</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    $objResponse</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">script</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'window.setTimeout("xajax_display()", 1000); '</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    return $objResponse</span><span class="syntaxkeyword">;<br />}<br /></span><span class="syntaxdefault">function textwegmachen</span><span class="syntaxkeyword">()<br />{<br /></span><span class="syntaxdefault">    $leer </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">''</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    $object </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> new xajaxResponse</span><span class="syntaxkeyword">();<br /></span><span class="syntaxdefault">    $object</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">assign</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'writingfield'</span><span class="syntaxkeyword">,</span><span class="syntaxstring">'value'</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> $leer</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    return $object</span><span class="syntaxkeyword">;<br />}<br /><br /></span><span class="syntaxdefault">$xajax</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">register</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">XAJAX_FUNCTION</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">"schreiben"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">$xajax</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">register</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">XAJAX_FUNCTION</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">"display"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">$xajax</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">register</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">XAJAX_FUNCTION</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">"textwegmachen"</span><span class="syntaxkeyword">);<br /><br /></span><span class="syntaxdefault">$xajax</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">processRequest</span><span class="syntaxkeyword">();<br /><br /></span><span class="syntaxdefault">class chat<br /></span><span class="syntaxkeyword">{<br /><br /></span><span class="syntaxdefault">    var $display_width</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    var $display_height</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    var $writing_field_height</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    var $writing_field_width</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    var $writing_field_button_width</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    var $writing_field_button_height</span><span class="syntaxkeyword">;<br /><br /></span><span class="syntaxdefault">    var $writer_name</span><span class="syntaxkeyword">;<br /><br /></span><span class="syntaxdefault">    function chat_include_display</span><span class="syntaxkeyword">()<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">        ?><br /></span>            <style type="text/css"><br />            #display<br />            {<br />                width: <span class="syntaxdefault"><?php echo $this</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">display_width</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> ?></span>px;<br />                height: <span class="syntaxdefault"><?php echo $this</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">display_height</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> ?></span>px;<br />                background-color: #B6B6B6;<br />            }<br />            </style><br />            <fieldset id="display"><br />            <div id="display"><br /><br /><br />            </div><br />            </fieldset><br />            <br /><br />        <span class="syntaxdefault"><?php<br /><br />    </span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">    function chat_include_writing_text_field</span><span class="syntaxkeyword">()<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">        ?><br /></span>            <style type="text/css"><br />            #writingfield<br />            {<br />                height: <span class="syntaxdefault"><?php echo $this</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writing_field_height</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> ?></span>px;<br />                width:  <span class="syntaxdefault"><?php echo $this</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writing_field_width</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> ?></span>px;<br />            }<br />            #ab<br />            {<br />                height: <span class="syntaxdefault"><?php echo $this</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writing_field_button_height</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> ?></span>px;<br />                width:  <span class="syntaxdefault"><?php echo $this</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writing_field_button_width</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> ?></span>px;<br />            }<br />            </style><br />            <form id="Absenden" name="Absenden" onsubmit="return false"><br />            <input type="hidden" name="absenden_schreibername" value="<span class="syntaxdefault"><?php echo $this</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writer_name</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> ?></span>" size="20" maxlength="50" /><br />            <textarea onclick="xajax_textwegmachen();" name="schreiben_schreibfeld" id="writingfield" rows="20" cols="20"></textarea><br />            <button onclick="xajax_schreiben(xajax.getFormValues('Absenden'));" id="ab">Absenden</button><br />            </form><br />            <div id="ben">Schreiben sie etwas in die textbox!</div><br />        <span class="syntaxdefault"><?php<br />        </span><span class="syntaxcomment">//require_once('xajax.request.php');<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}<br /><br />}<br /><br /></span><span class="syntaxdefault"> ?><br /></span><!DOCTYPE html><br /><html><br /><br /><head><br />    <title>Chat</title><br /><br />    <meta charset="UTF-8"><br />    <meta name="description" content=""><br />    <meta name="author" content=""><br />    <meta name="keywords" content=""><br />    <meta name="generator" content="Webocton - Scriptly (www.scriptly.de)"><br /><br />    <span class="syntaxdefault"><?php<br />    $xajax</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">printJavaScript</span><span class="syntaxkeyword">();<br /></span><span class="syntaxdefault">    ?><br /></span></head><br /><body><br /><br /><span class="syntaxdefault"><?php<br /><br />echo $_GET</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'chatname'</span><span class="syntaxkeyword">];<br /></span><span class="syntaxdefault">$chat </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> new chat</span><span class="syntaxkeyword">();<br /><br /></span><span class="syntaxdefault">$chat</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">display_height </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">'250'</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">$chat</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">display_width </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">'500'</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">$chat</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writing_field_height </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">'80'</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">$chat</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writing_field_width </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">'450'</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">$chat</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writing_field_button_height </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">'50'</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">$chat</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writing_field_button_width </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">'80'</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">$chat</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">writer_name </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_GET</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'chatname'</span><span class="syntaxkeyword">];<br /><br /></span><span class="syntaxdefault">$chat</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">chat_include_display</span><span class="syntaxkeyword">();<br /></span><span class="syntaxdefault">$chat</span><span class="syntaxkeyword">-></span><span class="syntaxdefault">chat_include_writing_text_field</span><span class="syntaxkeyword">();<br /></span><span class="syntaxdefault"> ?><br /></span><br /> <noscript>BITTE JAVASCRIPT AKTIVIEREN!!!</noscript>// hier weis ich nicht ob das in den head bereich kommt?<br /></body><br /></html><br /></span>


    Bitte um Hilfe!!!


    anscheinend werden die daten von den Formular nicht an die xajax function gesendet deshalb ist der Name { und Der inhalt {
    denn die function geht ja es wird ja alles angezeigt!!!


    mfg Truck007

    Nein im privaten diskutieren wir etwas anderes !!!


    naja egal das die Leute die mit Google auf die seite stößen nicht entäuscht werden schike ich ma meinen code :lol: :lol:



    so hab ichs nun gelöst:

    PHP
    1. <span class="syntaxhtml"><br /><div id="navigation"><br />Navigation:<br /> <ul><br /> <li><br /> <span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"" </span><span class="syntaxkeyword">OR </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"9" </span><span class="syntaxkeyword">OR </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"10" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=">Server Infos</a></li><br /> <span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"" </span><span class="syntaxkeyword">OR </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"9" </span><span class="syntaxkeyword">OR </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"10" </span><span class="syntaxkeyword">)<br /> {<br /> </span><span class="syntaxdefault">?><br /></span> <ul><li><br /> <span class="syntaxdefault"><?php<br /><br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"9" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=9">Public Server</a></li></u><li><br /> <span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"10" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=10">Plane Mod Server</a></li><br /> </ul> </u><br /> <span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">}<br /> </span><span class="syntaxdefault">?><br /></span> <li><br /> <span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"1" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=1">Wie wird man gelistet?</a></li><br /> <li><br /> <span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"2" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=2">Regeln</a></li><br /> <li><br /> <span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"3" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=3">Videos</a></li><br /> <li><br /> <span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"4" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=4">Hintergrundmusik f&uuml;r minecraft</a></li><br /> <li><span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"5" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=5">Clans</a></li><br /> <li><span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"6" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=6">Downloads</a></li><br /> <li><span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">if( </span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">== </span><span class="syntaxstring">"7" </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"<u>"</span><span class="syntaxkeyword">;<br /> }<br /> </span><span class="syntaxdefault">?><br /></span> <a href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span>?Reiter=7">Forum</a></li><br /> </ul><br /> </u><br /> </div><br /></span>


    nur ist nun noch mein problem, dass wenn mann audf die Seite kommt ist ja $seite Gleich leer un d wenn es leer ist dann
    wird der unterpunkt angezeigt??
    wie mache ich das wweg???


    mfg Truck007

    die session wird erst darunter auf true gesetzt.


    wie meinste das mit den Seiten?
    if( $seite == "")
    {
    <ul>...
    </ul>
    }
    Edit: so hab ich das jetzte aba mann soll ja die unterpunkte nich glei sehen wenn mann die seite aufruft , da ja $Seite dann glei "" ist ?



    ps:ich hab dir das programm in den privatren nachichten geschikt#
    mfg Truck007

    Ich hab mir ein menu gebastelt was zwar funktioniert aba einen fehler hat:


    wenn ich nun auf Server infos klicke dann wird die Session infmenu auf True gesetzt aba da das nach der if bedingung ist muss mann daerst nochma auf server infos drücken??
    wie mache ich das
    evt. mit java script , da ich da nich "soviel" :D weis hab ich gedacht erstma zu fragen ob das mit php geht eh ich dass mit js probiert hätte.



    mfg Truck007

    so soweit binn ich jetzte aba ich versteh nich warum du bei topic created by einen integer genommen hast ???


    und dann weiter ich bin nun soweit:


    PHP
    1. <span class="syntaxhtml"><br /><span class="syntaxdefault"><?php<br />session_start</span><span class="syntaxkeyword">();<br /></span><span class="syntaxdefault">?><br /></span><h3>Themen:</h3><br /><span class="syntaxdefault"><?php<br /> $sql </span><span class="syntaxkeyword">= </span><span class="syntaxstring">"SELECT * FROM topic"</span><span class="syntaxkeyword">;<br /> </span><span class="syntaxdefault">mysql_connect</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"localhost"</span><span class="syntaxkeyword">, </span><span class="syntaxstring">"truck0_769425"</span><span class="syntaxkeyword">, </span><span class="syntaxstring">"123456789"</span><span class="syntaxkeyword">);<br /> </span><span class="syntaxdefault">mysql_select_db</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"truck0_769425"</span><span class="syntaxkeyword">);<br /> </span><span class="syntaxdefault">$db_erg </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">mysql_query</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$sql</span><span class="syntaxkeyword">);<br /> while ( </span><span class="syntaxdefault">$inhalt </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">mysql_fetch_array</span><span class="syntaxkeyword">( </span><span class="syntaxdefault">$db_erg</span><span class="syntaxkeyword">, </span><span class="syntaxdefault">MYSQL_ASSOC </span><span class="syntaxkeyword">) )<br /> {<br /> </span><span class="syntaxdefault">?><br /></span> <fieldset><br /> <legend><span class="syntaxdefault"><?php </span><span class="syntaxkeyword">echo </span><span class="syntaxdefault">$inhalt</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'title'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span></legend><br /> Dieses Thema Wurde von <span class="syntaxdefault"><?php </span><span class="syntaxkeyword">echo </span><span class="syntaxdefault">$inhalt</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'createdBy'</span><span class="syntaxkeyword">]; </span><span class="syntaxdefault">?></span> erstellt.<br /> <a href="">Zu diesen Thema</a><br /> </fieldset><br /> <span class="syntaxdefault"><?php<br /> </span><span class="syntaxkeyword">}<br /><br /><br />if( isset(</span><span class="syntaxdefault">$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'savetopic'</span><span class="syntaxkeyword">]) )<br /> {<br /></span><span class="syntaxdefault">$title </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'title'</span><span class="syntaxkeyword">];<br /></span><span class="syntaxdefault">$createtBy </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">$_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'Name'</span><span class="syntaxkeyword">];<br /></span><span class="syntaxdefault">date_default_timezone_set</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'Europe/Berlin'</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">$createddate </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">date</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"d.m.Y"</span><span class="syntaxkeyword">);<br /><br /></span><span class="syntaxdefault">$sql </span><span class="syntaxkeyword">= </span><span class="syntaxstring">"INSERT INTO `truck0_769425`.`topic` (<br />`idtopic` ,<br />`title` ,<br />`createdBy` ,<br />`createDate`<br />)<br />VALUES (<br />NULL , '" </span><span class="syntaxkeyword">. </span><span class="syntaxdefault">$title </span><span class="syntaxkeyword">. </span><span class="syntaxstring">"' , '" </span><span class="syntaxkeyword">. </span><span class="syntaxdefault">$createtBy </span><span class="syntaxkeyword">. </span><span class="syntaxstring">"' , '" </span><span class="syntaxkeyword">. </span><span class="syntaxdefault">$createddate </span><span class="syntaxkeyword">. </span><span class="syntaxstring">"'<br />);<br />"</span><span class="syntaxkeyword">;<br /> </span><span class="syntaxdefault">mysql_connect</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"localhost"</span><span class="syntaxkeyword">, </span><span class="syntaxstring">"truck0_769425"</span><span class="syntaxkeyword">, </span><span class="syntaxstring">"123456789"</span><span class="syntaxkeyword">);<br /> </span><span class="syntaxdefault">mysql_select_db</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"truck0_769425"</span><span class="syntaxkeyword">);<br /> </span><span class="syntaxdefault">$db_erg </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">mysql_query</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$sql</span><span class="syntaxkeyword">);<br /> if( </span><span class="syntaxdefault">$db_erg </span><span class="syntaxkeyword">)<br /> {<br /> echo </span><span class="syntaxstring">"Dieses Thema wurde erfolgreich Erstellt."</span><span class="syntaxkeyword">;<br /> }else{<br /> echo </span><span class="syntaxstring">"Dieses Thema konnte nicht erstellt werden."</span><span class="syntaxkeyword">;<br /> }<br /><br />}<br />if( </span><span class="syntaxdefault">$_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'Moderator'</span><span class="syntaxkeyword">] == </span><span class="syntaxdefault">True </span><span class="syntaxkeyword">OR </span><span class="syntaxdefault">$_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'Admin'</span><span class="syntaxkeyword">] == </span><span class="syntaxdefault">True </span><span class="syntaxkeyword">)<br /> {<br /> </span><span class="syntaxdefault">?><br /></span> <h4>Neues Thema Erstellen:</h4><br /> <form name="Thema" action="" method="post" enctype="text/html"><br /><input type="text" name="title" value="" size="20" maxlength="50" /><br /><input type="submit" name="savetopic" value="Save" /><br /></form><br /><span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">}<br /> </span><span class="syntaxdefault">?><br /></span></span>


    das is die Forum.inc.php datei die ich in index.php eingebunden habe.


    nun aba wie wird der href vom Link? wie die TopicID
    mfg Truck007

    ne nich wirklich.
    Ich verstehe nicht was das mit den array soll.
    ??


    nja aba ich war doof ich hab bei der überprüfund ob alles gut ging
    hab ich if( != db_erg ) geschreiben:-(


    so das reg habsch veertig nun ans Forum also ich mache erstma ein button wo mann einn neues thema erstellen kann, was aba nur admins sehen könen.
    dann befülle ich mit fakten die tabelle topics.
    auserdem wird über den Buttondie komplette tabelle topics ausgelesen mit einer while schleife so wie ich es anm anfang ma hatte.?


    UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUPPS!!!


    naja ich hab mir ma die zeit genommen und das grundgrüsst noch mit reingeschrieben aba es geht nich
    hmm...
    wie jetzte mit zahlen als GET werte?
    meinst du mit den include dynamischer, dass ich in die Bedingungen mehr AND`s und OR`s anstadt sehr viele If bedingungen
    zu schreiben?
    Wenn ich das require raus nehme staht das formuslar da aba es wird ja nichts gemacht wenn ich srein tue is das form. weg ?


    PS: Ich hab auch in der SChule keine gute note auf Form und über haupt in deutsch.

    &quot;Sören&quot; schrieb:

    Könntest du noch den Rest des Codes posten? (Im Speziellen, wie $Seite zustande kommt)


    P:S: Schonmal was von Doctype und Tags wie html, head und body gehört?


    Ja $Seite kommt zu stande durch die Links aba wenn ich das require rausnhme dann gehts


    das grundgerüsst braucht mann doch in php nich


    PHP
    1. <span class="syntaxhtml"><br /><span class="syntaxdefault"><?php<br />session_start</span><span class="syntaxkeyword">();<br /><br /></span><span class="syntaxdefault">$Seite </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_GET</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'Reiter'</span><span class="syntaxkeyword">];<br /></span><span class="syntaxdefault">?><br /></span><link href="Style.css" type="text/css" rel="stylesheet" /><br /><br /><div id="head"><br /><font face="Castellar" size="4"><br /> <h1><center>Truck007´s MC Multyplayer Servers</center></h1></font> <br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Jetztige server Ip:<br /> <font color="#FFFFFF"><u>217.85.93.38:27232</u></font><br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serverstatus:<img src="online.PNG" border="" height="" width="" alt="&nbsp;Server Online" /><br /></div><br /><div id="navi"><br />Navigation:<br />  <ul><br />    <li><a id="nichts" href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>?Reiter=">Server Infos</a></li><br />    <li><a id="nichts" href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>?Reiter=1">Wie wird man gelistet?</a></li><br />    <li><a id="nichts" href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>?Reiter=2">Regeln</a></li><br />    <li><a id="nichts" href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>?Reiter=3">Videos</a></li><br />    <li><a id="nichts" href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>?Reiter=4">Hintergrundmusik f&uuml;r minecraft</a></li><br />    <li><a id="nichts" href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>?Reiter=5">Clans</a></li><br />    <li><a id="nichts" href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>?Reiter=6">Downloads</a></li><br />    <li><a id="nichts" href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>?Reiter=7">Forum</a></li><br />  </ul><br />  <br /><br /><br /><br />Noch kein Account?<br /><a id="red" href="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>?Reiter=8">Dr&uuml;cken sie hier um sich zu registrieren!</a><br /> <br /><br /><form name="post" action="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>" method="post" enctype="text/html"><br /><fieldset><br /><legend>Login</legend><br />Name:<br /><br /><input type="text" name="Name" value="" size="20" maxlength="50" />  <br /><br />Passwort:<br /><br /><input type="password" name="Pw" value="" size="20" maxlength="50" /><br /></fieldset><br /><input type="submit" name="Absenden" value="Login" id="button" /><br /></form><br /></div><br /><div id="main"><br /><span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">if(</span><span class="syntaxdefault"> $Seite </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">""</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">?><br /></span>Admin: Truck007<br /><br /><br /><br />Moderatoren: FTWDark, Max, Niki<br /><br /><h2>Website offline wegen neuer Programierung und gestaltung.<br />Registrierung und Forum sowie clans und login wird heute <br />und evt. auch bis morgen <br />nicht gehen.</h2><br /><span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">}<br />if(</span><span class="syntaxdefault"> $Seite </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">"1"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">?><br /><?php<br /></span><span class="syntaxkeyword">}<br />if(</span><span class="syntaxdefault"> $Seite </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">"2"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">?><br /></span><h2>Wie wird mann gelistet?</h2><br /><br /><br /><br /><span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">}<br />if(</span><span class="syntaxdefault"> $Seite </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">"3"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">?><br /></span><h2>Unsere Minecraft Server Videos:</h2><br /><h3>Unser Erster Minecraft Public Server:</h3><br /><br /><br /><iframe width="480" height="390" src="http://www.youtube.com/embed/nElArqHOiZU" frameborder="0" allowfullscreen></iframe><br /><br /><br /><h3>How to: Die Ersten schritte:</h3><br /><br /><br /><iframe width="480" height="390" src="http://www.youtube.com/embed/orw1fmcP470?rel=0" frameborder="0" allowfullscreen></iframe><br /><h3>How to: &Uuml;berleben:</h3><br /><br /><br /><iframe width="480" height="390" src="https://www.youtube.com/embed/rtUdPjzJMdI" frameborder="0" allowfullscreen></iframe><br /><span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">}<br />if(</span><span class="syntaxdefault"> $Seite </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">"4"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">?><br /></span><h2>Hintergrundmusik f&uuml;r Minecraft Einf&uuml;gen</h2><br /><br /><br /><br /><ul><br />    <li>Klicken sie auf play und lassen sie die Website laufen w&auml;hrend sie minecraft spielen.</li><br />    <li>Geniesen sie die von ihnen gew&auml;hlte musikrichtung.</li><br />    <li>Da die Minecraft musik nicht die beste ist hab ich mir so etwas &uuml;berlegt aber es ist noch in der testphase.</li><br />    <li>Manche Lieder nochmal nachgemixt.</li><br />    <li>Musikquelle: <b>Youtube</b></li><br /></ul>  <br /><br /><br /><span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">require_once(</span><span class="syntaxstring">"musik.inc.php"</span><span class="syntaxkeyword">);<br />}if(</span><span class="syntaxdefault"> $Seite </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">"5"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">?><br /></span><h2>Clans Auf den server:</h2><br /><span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">}if(</span><span class="syntaxdefault"> $Seite </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">"6"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">?><br /></span><h2>Downloadbereich:</h2><br /><span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">}if(</span><span class="syntaxdefault"> $Seite </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">"7"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">?><br /></span><h2>Forum:</h2><br /><span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">}<br />if(</span><span class="syntaxdefault"> $Seite </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">"8"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br />require_once(</span><span class="syntaxstring">"regisrieren.inc.php"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    ?><br /></span><h2>Registrieren:</h2><br /><form name="registrieren" action="<span class="syntaxdefault"><?php $_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'PHP_SELF'</span><span class="syntaxkeyword">];</span><span class="syntaxdefault"> ?></span>" method="post" enctype="text/html"><br /><fieldset><br /><legend>Daten angeben</legend><br /><input type="text" name="rname" value="" size="20" maxlength="50" />:Name<br /><br /><input type="text" name="rnamew" value="" size="20" maxlength="50" />:Name wiederholen<br /><br /><input type="text" name="rpw" value="" size="20" maxlength="50" />:Passwort<br /><br /><input type="text" name="rpww" value="" size="20" maxlength="50" />:Passwort wiederholen<br /><br /><input type="text" name="remail" value="" size="20" maxlength="50" />:E-mail<br /><br /><input type="text" name="remailw" value="" size="20" maxlength="50" />:E-mail wiederholen<br /><br /></fieldset><br /><fieldset><br /><legend>Spammschutz:</legend><br />Was von diesen Objekten stellt ein Tier dar: <br /><br /><input type="radio" name="spam" value="M" /> Mond<br /><br /><input type="radio" name="spam" value="T" /> Toilette<br /><br /><input type="radio" name="spam" value="B" /> B&auml;r<br /></fieldset><br /><input type="submit" name="reg" value="registrieren" /><br /></form><br />    <span class="syntaxdefault"><?php<br /></span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">?><br /></span></div><br /></span>



    mfg Truck007

    Ich habe gerade ein problem mir meinen Formular, denn esss wird nich angezeigt.
    hier der code vom reiter 8 also den reiter mit den registrieren:


    und noch der von registriere.inc.php:

    PHP
    1. <span class="syntaxhtml"><br /><span class="syntaxdefault"><?php<br /><br />$rname   </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'rname'</span><span class="syntaxkeyword">];<br /></span><span class="syntaxdefault">$rnamew  </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'rnamew'</span><span class="syntaxkeyword">];<br /></span><span class="syntaxdefault">$rpw     </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'rpw'</span><span class="syntaxkeyword">];<br /></span><span class="syntaxdefault">$rpww    </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'rpww'</span><span class="syntaxkeyword">];<br /></span><span class="syntaxdefault">$remail  </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'remail'</span><span class="syntaxkeyword">];<br /></span><span class="syntaxdefault">$remailw </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'remailw'</span><span class="syntaxkeyword">];<br /><br /></span><span class="syntaxdefault">$spam    </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'spam'</span><span class="syntaxkeyword">];<br /><br />if(</span><span class="syntaxdefault"> isset</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$_POST</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'reg'</span><span class="syntaxkeyword">])</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">    if</span><span class="syntaxkeyword">(</span><span class="syntaxdefault"> $spam </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> </span><span class="syntaxstring">"B"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">    if</span><span class="syntaxkeyword">(</span><span class="syntaxdefault"> $rname </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> $rnamew AND $remail </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> $remailw AND $rpw </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> $rpww </span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">        </span><span class="syntaxkeyword">{<br /><br /></span><span class="syntaxdefault">$sql </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"SELECT * FROM user"</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">mysql_connect</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"localhost"</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">"truck0_769425"</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">"123456789"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">mysql_select_db</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"truck0_769425"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">$db_erg </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> mysql_query</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$sql</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">while </span><span class="syntaxkeyword">(</span><span class="syntaxdefault"> $inhalt </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> mysql_fetch_array</span><span class="syntaxkeyword">(</span><span class="syntaxdefault"> $db_erg</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> MYSQL_ASSOC </span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br />{<br />if(</span><span class="syntaxdefault">$inhalt</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'username'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> $rname </span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">   </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">       $_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'namevorhanden'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> True</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">   </span><span class="syntaxkeyword">}<br />if(</span><span class="syntaxdefault">$inhalt</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'email'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> $remail</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">   </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">       $_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'emailvorhanden'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> True</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">   </span><span class="syntaxkeyword">}<br />}<br />if(</span><span class="syntaxdefault"> $_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'namevorhanden'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> True </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">    echo </span><span class="syntaxstring">"Ihr Name ist bereits vorhanden. Bitte suchen sie sich eien anderen aus!"</span><span class="syntaxkeyword">;<br />}<br />if(</span><span class="syntaxdefault"> $_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'emailvorhanden'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> True </span><span class="syntaxkeyword">)<br />{<br /></span><span class="syntaxdefault">    echo </span><span class="syntaxstring">"Ihre E-Mail-Adresse wurde bereits verwendet."</span><span class="syntaxkeyword">;<br />}<br />if(</span><span class="syntaxdefault"> $_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'emailvorhanden'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">!=</span><span class="syntaxdefault"> True AND $_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'namevorhanden'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">!=</span><span class="syntaxdefault"> True </span><span class="syntaxkeyword">)<br />{<br /><br /></span><span class="syntaxdefault">$sql </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"INSERT INTO `truck0_769425`.`user` (<br />  `iduser` ,<br />  `username` ,<br />  `password` ,<br />  `email` ,<br />  `bithday`,<br />  `gender`,<br />  `messenger_msn`,<br />  `messenger_skype`,<br />  `messenger_icq`,<br />  `aboutMe`<br />)<br />VALUES<br />(<br />  NULL ,<br />  '{$rname}',<br />  '{$rpw}',<br />  '{$remail}',<br />  NULL ,<br />  NULL ,<br />  NULL ,<br />  NULL ,<br />  NULL ,<br />  NULL<br />);<br />"</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    mysql_connect</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"localhost"</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">"truck0_769425"</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">"123456789"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    mysql_select_db</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"truck0_769425"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    $db_erg </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> mysql_query</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$sql</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">    if</span><span class="syntaxkeyword">(</span><span class="syntaxdefault"> $db_erg </span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">        echo </span><span class="syntaxstring">"Sie sind jetzt Registriert und auch gleich angemeldet."</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">        $_SESSION</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'Login'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> True</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">    if</span><span class="syntaxkeyword">(</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">!=</span><span class="syntaxdefault"> $db_erg </span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">        echo </span><span class="syntaxstring">"Sie wurden konnten nicht registriert werden.<br />Bitte wenden sie sich an einen Administrator."</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}<br /><br />}<br /></span><span class="syntaxdefault">        </span><span class="syntaxkeyword">}else{<br /></span><span class="syntaxdefault">            echo </span><span class="syntaxstring">"bitte &uuml;berpr&uuml;fen sie ihre eingabe"</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">        </span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}else{<br /></span><span class="syntaxdefault">        echo </span><span class="syntaxstring">"Das von ihnen gew&auml;hlte Objekt ist kein Tier."</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}<br /><br />}<br /><br /></span><span class="syntaxdefault">?><br /></span></span>


    bitte um hilfe obwohl das bestimmt an etwas kleinen liegt was ich nich beachtet habe hier nochma der Link zur Website da köönnt ihr sehen dass nichts angezaigt wird.
    http://truck007.tr.funpic.de


    ps: Ich hab die Farbe geändert

    naja ich werde erstmal ne Nacht drüber schlafen und morgen das machen aba trotzdem
    wes ich immer noch nicht so richtig in welche tabelle ich die antworten auf die fragen die in einen thema untergebracht sind reinmachen soll.
    aja und ich schreib dann eigentlich die fragen, themen, antworten immer darein(in topics) und muss nichts beachten?


    und das auslesen der antworten geht wirklich einfachso mit wenn ich die fragen auslese kommen die glei mit aba wo sin die gespeichert?


    Zitat

    Hoffe konnte dir helfen und so (:


    Ja konnnteste aba ich habs noch nich so richtig :=()


    mfg Truck007

    JEAH ich habse erstellt zwar umständlich aba es ging.


    nun Trotzdem noch ein paar Fragen:
    -wenn sich jemand registriert muss ich die Tabelle User befüllen?
    -wenn jemand ein neues Thema schreibt muss ich die Tabelle topics befüllen aba wo steht da der Inhalt zum auslesen was dann als frage steht?
    -wenn jemannd eine frage stellt muss ich die in replys befüllen?
    -um eine übersicht zu erstellen was es für theman gibt lese ich einfach die komplette tabelle Topics aus oda?
    -wie mache ich dass die Antworten auch nur bei dieser einen frage angezeigt werden?
    -für was brauche ich die Tabelle topics_replys?
    -wie kann mann wenn mann nur die fakten der einen tabelle hat auf die andere mit der id zugreifen (hab das noch nie gemacht)?


    wäre nett wende mir das noch erklärenkönntest.


    mfg Truck007

    es gibt nur die Reiter:
    Datenbanken, SQL, Status, Variablen, Zeichensätzte, Formate, Prozesse, exportieren, importieren, gleiche ab.
    da steht nichts mit regeln???
    mfg Truck007

    &quot;Sören&quot; schrieb:

    phpmyadmin-Startseite -> Rechte
    Bei dem Benutzer, mitdem du dich in MySQL einloggst (müsste "root" sein"), müsste "ALL PRIVILEGIES", wenn nicht, klicke mal auf das Icon am rechten Ende der Zeile des Benutzers, dann siehst du die Rechte des Benutzers


    ehm ne ich hab doch einen webspace und da bin ich nich root