Re: storing line breaks in a database

From: Date: Fri, 21 Dec 2001 19:47:41 +0000
Subject: Re: storing line breaks in a database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78511@lists.php.net to get a copy of this message
Are you talking about multiple line input boxes from HTML forms, or from a Visual Basic program (or some other such program)? In both cases, the line breaks are included in the output the form posts. However, when displaying them in HTML the linebreaks are ignored and you'd have to use the <br> tag instead. If you were retrieving them for the VB program, they would display correctly anyway. The character for the line break in normal text files is '\n', the line break for VB and other windows files is '\r\n' (2 characters). Best regards, Jeremy Reed "Robin McKenzie" <Robin.McKenzie.98@bris.ac.uk> wrote in message news:20011221193435.47073.qmail@pb1.pair.com... > > > I am storing comments in a MySQL db, and want to know how to include line > breaks from multi-line input boxes. > > Does anyone have any experience of doing this? > > Kind Regards, > > Robin > >

« previous php.general (#78511) next »