nl2br in $row -> text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • nl2br in $row -> text

    Hallo,
    ich mach jetzt mal ein neues Thema auf.

    Warum funktioniert das nicht?
    PHP Code:
    <?
    $query="SELECT * FROM marion";
    $result=mysql("$db",$query);
    $number=mysql_numrows($result);
    $row =mysql_data_seek ($result,$zahl);
    $row = mysql_fetch_object ($result);

    $text = ($row->text) <p>;  //Diese Zeile funktioniert nicht!
    $text = eregi_replace("\n","<br>",$text);
    echo "text"<p>";
    ?>
    Last edited by Gunther; 29-04-2002, 19:31.

  • #2
    $text = ($row->text) <p>;
    Sollte vielleicht so aussehen:
    $text = $row->text."<p>";
    echo "text"<p>";// geht auch sicher nicht
    echo $text."<p>";
    Beantworte nie Threads mit mehr als 15 followups...
    Real programmers confuse Halloween and Christmas because OCT 31 = DEC 25

    Comment


    • #3
      tausendmal Danke, jetzt funktionierts endlich!!

      Gunther

      Comment

      Working...
      X