renathy Posted April 4, 2009 Report Share Posted April 4, 2009 Saglabāju mysql datu bāzē ierakstu no textarea: mysql_real_escape_string(str_replace("<br>", "\n", $row['message'])) Tādējādi mysqlā nonāk teksts ar enteriem. Kad atrādu šo tekstu iekš textarea: htmlspecialchars($row['message']), tad tur ir enteri. Bet kad rādu šo tekstu iekš <p> tagad, tad tur nav enteru. Kāpēc? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.