php-windows Digest 18 May 2007 09:37:14 -0000 Issue 3231
Topics (messages 27909 through 27910):
Re: Textarea and mysql
27909 by: Bill Bolte
27910 by: bedul
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Split the data on a line break maybe? First thing that comes into my
head...
-----Original Message-----
From: Moore, Joshua [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 17, 2007 4:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Textarea and mysql
Hello,
Im currently having a bit of an issue with putting user info from a
textarea
into mysql db with php. With the textarea I need each new line to be a
separate entry into the db fields. So I guess the end result is making
the
textarea act like a regular text html form. The reason I am using
textarea is
because I want a user to paste in a long string of numbers
Ex:
11111111
22222222
33333333
...and so on
And each will end up in the same field just different entries.
Does anyone have any idea how I can accomplish this?
Thanks
--- End Message ---
--- Begin Message ---
$temp = str_replace("\n","[break]",$inpText); //inpText is from textArea
and then u enter your temp to the sql..
when you want to split it up.. just use
$temp=explode("[break]",$inp4Sql); //hope i don't give wrong function
==spam?? sory===
----- Original Message -----
From: "Bill Bolte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 18, 2007 4:22 AM
Subject: RE: [PHP-WIN] Textarea and mysql
Split the data on a line break maybe? First thing that comes into my
head...
-----Original Message-----
From: Moore, Joshua [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 17, 2007 4:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Textarea and mysql
Hello,
Im currently having a bit of an issue with putting user info from a
textarea
into mysql db with php. With the textarea I need each new line to be a
separate entry into the db fields. So I guess the end result is making
the
textarea act like a regular text html form. The reason I am using
textarea is
because I want a user to paste in a long string of numbers
Ex:
11111111
22222222
33333333
...and so on
And each will end up in the same field just different entries.
Does anyone have any idea how I can accomplish this?
Thanks
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---