[PHP] phpscriptor.com

2009-07-11 Thread PHPScriptor

Ok this may look like spam but what the hell...

I'm the owner of phpscriptor.com, I had bigg plans with this domainname
but... well yes, no time. So I'm selling it. I don't want to make profit out
of it. So for, lets say 200 dollar, you can have to domainname. And if you
want, you get the website free with it.
I hope I can do someone a pleasure with it. So that someone else can make
something great out of it.
If you 're interested in it, just send me a mail cont...@phpscriptor.com

Greetings

-
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/phpscriptor.com-tp24441087p24441087.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] textarea new line to mysql database

2009-05-15 Thread PHPScriptor

Hello,

How do you guys handle this problem.

Just a form with a textarea. When I use enters in the textarea it's saved to
the db like this:

database:
first line
second line

when I edit the value in the form:
first line
second line

when I output the value to html:
first linesecond line (unless I use nl2br())

Is there a way that I could save it to the db that will work for db, output
and edit without using any other function like nl2br?

-
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/textarea-new-line-to-mysql-database-tp23560478p23560478.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] textarea new line to mysql database

2009-05-15 Thread PHPScriptor

Mja, that's not my intention, in that case I also could use nl2br... 

Why does this problem exists? And why does it work with pre? Is this a PHP
problem or more a HTML problem?


Robert Cummings wrote:
 
 On Fri, 2009-05-15 at 07:03 -0700, PHPScriptor wrote:
 Hello,
 
 How do you guys handle this problem.
 
 Just a form with a textarea. When I use enters in the textarea it's saved
 to
 the db like this:
 
 database:
 first line
 second line
 
 when I edit the value in the form:
 first line
 second line
 
 when I output the value to html:
 first linesecond line (unless I use nl2br())
 
 Is there a way that I could save it to the db that will work for db,
 output
 and edit without using any other function like nl2br?
 
 Not to the DB, but it should respect newlines if you wrap it in
 pre/pre tags.
 
 Cheers,
 Rob.
 -- 
 http://www.interjinn.com
 Application and Templating Framework for PHP
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


-
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/textarea-new-line-to-mysql-database-tp23560478p23560765.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] textarea new line to mysql database

2009-05-15 Thread PHPScriptor

Well, the problem is that I have a lot of forms, a lot of data to output, and
even then, I don't know always where I have a textarea or just a inputfield.
But true, I could even set the nl2br on an input field, it wouldn't make a
difference.
But I just don't understand why this problem exists? What's the reason?


Stuart-47 wrote:
 
 2009/5/15 PHPScriptor cont...@phpscriptor.com:

 Hello,

 How do you guys handle this problem.

 Just a form with a textarea. When I use enters in the textarea it's saved
 to
 the db like this:

 database:
 first line
 second line

 when I edit the value in the form:
 first line
 second line

 when I output the value to html:
 first linesecond line (unless I use nl2br())

 Is there a way that I could save it to the db that will work for db,
 output
 and edit without using any other function like nl2br?
 
 What's your problem with using nl2br? This is the reason it exists!!
 
 Store the raw data in the database, and run nl2br on it when you
 display it. I don't see a problem.
 
 -Stuart
 
 -- 
 http://stut.net/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


-
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/textarea-new-line-to-mysql-database-tp23560478p23560853.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] textarea new line to mysql database

2009-05-15 Thread PHPScriptor

Yes, I thought about that. But then you have a problem when you're going to
'edit' that data back in a form. Then you get first linebr /second line
in your textarea.


Manoj Sterex wrote:
 
 Well, instead of storing the text from the textarea directly into the db,
 validate it and wrap it with br / tags (replace \n) and then store it.
 This way you needn't use nl2br every time you retrieve the text from db.
 
 -Sterex
 
 
 On Fri, May 15, 2009 at 7:42 PM, Stuart stut...@gmail.com wrote:
 
 2009/5/15 PHPScriptor cont...@phpscriptor.com:
 
  Hello,
 
  How do you guys handle this problem.
 
  Just a form with a textarea. When I use enters in the textarea it's
 saved
 to
  the db like this:
 
  database:
  first line
  second line
 
  when I edit the value in the form:
  first line
  second line
 
  when I output the value to html:
  first linesecond line (unless I use nl2br())
 
  Is there a way that I could save it to the db that will work for db,
 output
  and edit without using any other function like nl2br?

 What's your problem with using nl2br? This is the reason it exists!!

 Store the raw data in the database, and run nl2br on it when you
 display it. I don't see a problem.

 -Stuart

 --
 http://stut.net/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 
 


-
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/textarea-new-line-to-mysql-database-tp23560478p23560882.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php