robertroth: Problem mit str_replace

Beitrag lesen

Liebe Mitdenker, liebe Wissende, liebe Neugierige,

Zeig doch bitte den erzeugten HTML-Code (aus dem Browser!), der zu dem Bild mit der falschen Darstellung gehört. Da hast Du vermutlich ein geschachteltes <img .... <img ....<img .... alt="..." >>> gebastelt.

wie gewünscht der komplette Code:

<div class="klio"><h2 class="toner_titel">Alternativ Tinten Spar-Set</h2><p>Alternativ zu Brother LC-900 Tinten Spar-Set (je 1 x BK,C,M,Y) 4 Stück</p><p>ArtNr.: KB-LC9004S</p><p>Farbe: <img src="img/icons/farben/cyan.jpg" alt="Cyan">, Rot, Gelb, Schwarz</p><p>Inhalt: Alternativ zu Brother LC-900 Tinten Spar-Set (je 1 x BK,C,M,Y) 4 Stück</p><p>Preis: 2,73 €</p><br><div class="klio"><h2 class="toner_titel">Alternativ Tinten Spar-Set</h2><p>Alternativ zu Brother LC 900 Tinten Spar-Set (4x BK, je 2xC,M,Y) 10 Stüc</p><p>ArtNr.: KB-LC900SS10</p><p>Farbe: <img src="img/icons/farben/cyan.jpg" alt="Cyan">, Rot, Gelb, Schwarz</p><p>Inhalt: Alternativ zu Brother LC 900 Tinten Spar-Set (4x BK, je 2xC,M,Y) 10 Stüc</p><p>Preis: 6,80 €</p><br><div class="klio"><h2 class="toner_titel">Alternativ Tinten Spar-Set</h2><p>Alternativ zu Brother LC-900 Spar-Set (6x BK, je 4x CMY) 18 Stück</p><p>ArtNr.: K-BRO-LC900SS18</p><p>Farbe: <img src="img/icons/farben/cyan.jpg" alt="Cyan">, Rot, Gelb, Schwarz</p><p>Inhalt: Alternativ zu Brother LC-900 Spar-Set (6x BK, je 4x CMY) 18 Stück</p><p>Preis: 12,16 €</p><br>Schwarz<div class="klio"><h2 class="toner_titel">Alternativ Tinte</h2><p>Alternativ zu Brother LC-900 BK Tinte Black</p><p>ArtNr.: 11001</p><p>Farbe: Schwarz</p><p>Inhalt: Alternativ zu Brother LC-900 BK Tinte Black</p><p>Preis: 0,74 €</p><br><div class="klio"><h2 class="toner_titel">Alternativ Tinte</h2><p>Alternativ zu Brother LC-900 C Tinte Cyan</p><p>ArtNr.: 11002</p><p>Farbe: <img src="img/icons/farben/cyan.jpg" alt="Cyan"></p><p>Inhalt: Alternativ zu Brother LC-900 C Tinte Cyan</p><p>Preis: 0,74 €</p><br><div class="klio"><h2 class="toner_titel">Alternativ Tinte</h2><p>Alternativ zu Brother LC-900 M Tinte Magenta</p><p>ArtNr.: 11003</p><p>Farbe: Magenta</p><p>Inhalt: Alternativ zu Brother LC-900 M Tinte Magenta</p><p>Preis: 0,74 €</p><br><div class="klio"><h2 class="toner_titel">Alternativ Tinte</h2><p>Alternativ zu Brother LC-900 Y Tinte Yellow</p><p>ArtNr.: 11004</p><p>Farbe: Gelb</p><p>Inhalt: Alternativ zu Brother LC-900 Y Tinte Yellow</p><p>Preis: 0,74 €</p><br>Blau, Rot, Gelb, Schwarz<div class="klio"><h2 class="toner_titel">Orginal Tinte Spar-Set</h2><p>Original Brother LC-900 Tinten Multipack (BK,C,M,Y) 4 Stück</p><p>ArtNr.: OB-LC900VALBPDR</p><p>Farbe: <img src="img/icons/farben/cyan.jpg" alt="Cyan">, Rot, Gelb, Schwarz</p><p>Inhalt: Original Brother LC-900 Tinten Multipack (BK,C,M,Y) 4 Stück</p><p>Preis: 33,85 €</p><br>Schwarz<div class="klio"><h2 class="toner_titel">Original Tinte</h2><p>Original Brother LC-900BK Tinte Black</p><p>ArtNr.: OB-LC900BK</p><p>Farbe: Schwarz</p><p>Inhalt: Original Brother LC-900BK Tinte Black</p><p>Preis: 14,24 €</p><br><div class="klio"><h2 class="toner_titel">Original Tinte</h2><p>Original Brother LC-900C Tinte Cyan</p><p>ArtNr.: OB-LC900C</p><p>Farbe: <img src="img/icons/farben/cyan.jpg" alt="Cyan"></p><p>Inhalt: Original Brother LC-900C Tinte Cyan</p><p>Preis: 7,99 €</p><br><div class="klio"><h2 class="toner_titel">Original Tinte</h2><p>Original Brother LC-900M Tinte Magenta</p><p>ArtNr.: OB-LC900M</p><p>Farbe: Magenta</p><p>Inhalt: Original Brother LC-900M Tinte Magenta</p><p>Preis: 7,99 €</p><br><div class="klio"><h2 class="toner_titel">Original Tinte</h2><p>Original Brother LC-900Y Tinte Yellow</p><p>ArtNr.: OB-LC900Y</p><p>Farbe: Gelb</p><p>Inhalt: Original Brother LC-900Y Tinte Yellow</p><p>Preis: 7,99 €</p><br></div>

Mmmh

Geschachtelte <img> hast Du also nicht produziert.
Also liegt der Fehler woanders. Müssen wir uns doch die DBMS-Seite nochmal angucken.

Und dein HTML-Modul hat jetzt andere Fehler. Die schließenden </div> fehlen. Wenn Du eines öffnest, solltest Du es auch wieder schließen. Aber das erst später.

Spirituelle Grüße
Euer Robert
robert.r@online.de

--
Möge der wahre Forumsgeist ewig leben!
0 53

Problem mit str_replace

Jnnbo
  • php
  1. 1
    Der Martin
    1. 0
      Jnnbo
      1. 1
        robertroth
        1. 0
          Jnnbo
          1. 1
            robertroth
            1. 0
              Jnnbo
              1. 1
                robertroth
                1. 0
                  Jnnbo
                  1. 1
                    robertroth
                    1. 0
                      Jnnbo
  2. 0
    robertroth
    1. 0
      Jnnbo
      1. 0
        robertroth
        1. 0
          Jnnbo
          1. 0
            robertroth
            1. 0
              Jnnbo
              1. 0
                robertroth
                1. 0
                  Jnnbo
                  1. 0
                    robertroth
                    1. 0
                      Jnnbo
                      1. 0
                        robertroth
                        1. 0
                          Jnnbo
                    2. 0

                      Problem mit str_replace - Update

                      Jnnbo
                      1. 0
                        robertroth
                        1. 0
                          Jnnbo
                          1. 0

                            Meine Lösung!

                            Jnnbo
                            1. 0
                              robertroth
                              1. 0
                                Jnnbo
                                1. 0
                                  robertroth
                                  1. 0
                                    Jnnbo
                            2. 0

                              Vor- und Nachteil?

                              Jnnbo
                              1. 0
                                Gunnar Bittersmann
                                • html
                                • php
                                • zu diesem forum
                                1. 0
                                  dedlfix
                                  1. 1
                                    Gunnar Bittersmann
                                    1. 0
                                      dedlfix
                                      1. 0
                                        Gunnar Bittersmann
                                        1. 0
                                          Gunnar Bittersmann
                                          • php
                                  2. 0
                                    Jnnbo
                                    1. 0
                                      dedlfix
                                2. 0
                                  Matthias Apsel
                                  • zu diesem forum
                          2. 1
                            robertroth
  3. 0
    Gunnar Bittersmann
    • barrierefreiheit
    • css
    • html
    1. 0
      Jnnbo
      1. 0
        Gunnar Bittersmann
        • barrierefreiheit
    2. 0

      Problem mit str_replace(), falsches Datenmodell?

      robertroth
      • barrierefreiheit
      • css
      • datenbank
      1. 0
        Jnnbo
        1. 0
          dedlfix
          1. 0
            Jnnbo
            1. 0
              dedlfix
      2. 0
        Gunnar Bittersmann
        • barrierefreiheit
        • html
        1. 0
          Gunnar Bittersmann
  4. 0
    MudGuard