On Fri, 12 Nov 2004 15:41, Justin Baiocchi wrote:
> I use this when submitting the data from the form (for jokes):
>
> if ($submit)
> {
> $joke = nl2br($joke);
> $dbcnx = @mysql_connect( "localhost", "root", "password");
> mysql_select_db("movements");
> $sql = "INSERT INTO jokes SET author='$au
I did a search for this in the archive but didn't find anything.
Is there a way to preserve the format of text in a textbox that is being
saved in a database and then pulled out and displayed? The people
entering the data want to keep their tabs and newlines, but right now,
that's not happening.
On 12/11/2004, at 4:05 PM, Amanda Hemmerich wrote:
I did a search for this in the archive but didn't find anything.
Is there a way to preserve the format of text in a textbox that is
being
saved in a database and then pulled out and displayed? The people
entering the data want to keep their tabs
mysql_error());
$myrow = mysql_fetch_array($qry);
$joke = str_replace("","\n",$joke);
?>
Kindly provided by
Excuse the crap code, I'm pretty new to php :)
-Original Message-
From: Amanda Hemmerich [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 November 2004 4:
4 matches
Mail list logo