Re: MySQL/PHP Form & Addslashes() command

From: Date: Fri, 26 Jan 2001 22:48:32 +0000
Subject: Re: MySQL/PHP Form & Addslashes() command
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-6214@lists.php.net to get a copy of this message
Hello! JJeffman wrote: > There is the "nl2br()" function too : > // From php manual : > > nl2br -- Converts new lines to HTML line breaks. > Description > > string nl2br(string string); > > Returns string with '<BR>' inserted before all new lines. > Sure, but never add any html tag to the data before insert into the database. Instead, use this function when you output the text. Mage

« previous php.db (#6214) next »