zrobiłem taki kod.
$tresc = $edytuj['tresc']; $tresc = str_replace("<br>","\n",$tresc);Lecz nie działa.
Jak dodać takie coś ?
$get = (int)$_GET['edit']; $edytuj = mysql_query("SELECT * FROM `newsy` where `id`='$get'"); $ilosc_zapytan; while($edytuj = mysql_fetch_array($edytuj)) { echo <<< edytuj <form action="" method="POST"> <center> <table bordercolor="#94a3c4" > <tr height="5" bgcolor="#eceff5"> <td colspan="2"><b>Edytujesz Newsa: {$edytuj['tytul']}</b></td> </tr> <tr> <td colspan="5"> <tr height="10"> <td>Tytuł:</td> <td><input type="text" name="tytul" size="30" value="{$edytuj['tytul']}" maxlength="30"></td> <tr height="10"> <td>Opis:</td> <td><input type="text" name="opis" size="30" value="{$edytuj['opis']}" maxlength="35"></td> </tr> <tr height="10"> <td>Autor:</td> <td><input type="text" name="autor" size="30" value="{$edytuj['autor']}" maxlength="10"></td> </tr> <tr height="10"> <td>Tre¶ć Newsa:</td> <td><textarea cols="57" rows="15" name="tresc" />{$edytuj['tresc']}</textarea></td> </tr> <tr> <td><input value="Edytuj" name=edytuj type="submit"></td><td><button type="reset">Reset</button></td> </tr> <tr height="5" bgcolor="#eceff5"> <td colspan="2">System Newsów by Gh0st</td> </tr> </table> </center> </form> edytuj; }