Re: [PHP] textarea new line+mysql update

2002-07-05 Thread colin mcdonald
use addslashes "update table1 set column1= '".addslashes($string)."' where ID = '$IDcurent'" Adi wrote: > tx, it's working now > but i still have a problem: > i want to insert into mysql database value $string: >$result2 = db_query("update table1 set column1= '$string' where ID = > '$IDcure

Re: [PHP] textarea new line+mysql update

2002-07-05 Thread adi
tx, it's working now but i still have a problem: i want to insert into mysql database value $string: $result2 = db_query("update table1 set column1= '$string' where ID = '$IDcurent'") or db_die(); When i try to view in text area the new value from column1, the newlines disappear! ps.column 1 h