Re: [PHP] php +newlines+mysql

2002-07-08 Thread Analysis & Solutions
On Mon, Jul 08, 2002 at 10:49:12AM +0300, adi wrote: > $string="-line1\n -line2 \n-line3"; > > $result2 = db_query("update table1 set column1= '$string' where ID = > '$IDcurent'") or db_die(); > When i try to view in a textarea control the new value from column1, the > newlines disappear! We

[PHP] php +newlines+mysql

2002-07-08 Thread adi
I have a problem in php page: i want to insert into mysql database value $string with newlines: $string="-line1\n -line2 \n-line3"; $result2 = db_query("update table1 set column1= '$string' where ID = '$IDcurent'") or db_die(); When i try to view in a textarea control the new value from colum