2 messages in com.mysql.lists.mysqlRe: text datatype
FromSent OnAttachments
ali asghar torabi parizy29 May 2006 11:53 
João Cândido de Souza Neto29 May 2006 12:23 
Subject:Re: text datatype
From:João Cândido de Souza Neto (jo@curitibaonline.com.br)
Date:05/29/2006 12:23:56 PM
List:com.mysql.lists.mysql

When you´ll catch data for a text field, you ought to use a <textarea></textarea>.

When you´ll pull it from the database to the screen, you have to use nl2br($field) to conver \n to <br>.

"ali asghar torabi parizy" <samb@yahoo.com> escreveu na mensagem news:2006@web37515.mail.mud.yahoo.com...

hi i am creating web newsprogram by php and mysql. how to i can use text data type for saving contents of articles in database? when i use text format,contents save in the tables unless eny new line. howto i can insert \n element in text format?