Hi there,
On one of my forms, there is a section where users can put images etc..and
then it is displayed on my php pages. My question is how do I make it so
that the html formatting is automatically done. For example when someone is
typing something, and wants to start a new paragraph although
use the nl2br() function to convert the newlines to br
bastien
From: Alex Major [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Formatting a form box
Date: Thu, 12 Jan 2006 16:33:01 +
Hi there,
On one of my forms, there is a section where users can put images etc..and
then
One approach is to ask the user to input a text delimiter, like a @, for
example, in every point where there should be a new line or paragraph.
Then, you should parse the text, and at every point you find a @, tu place
a BR or P or any other HTML tag that best suits your need!!
This is just one
What? Nobody said This has nothing to do with PHP and databases? Sheesh...
someone must be sleeping. :) Ok, so it sorta does relate..
But yeah... no2br() will do it for you. Textarea input types DO send a newline
and/or carriage return (didn't test and might be system specific), so if you
Miguel Guirao wrote:
One approach is to ask the user to input a text delimiter, like a @, for
example, in every point where there should be a new line or paragraph.
Then, you should parse the text, and at every point you find a @, tu place
a BR or P or any other HTML tag that best suits your
Thanks for the suggestions, the nl2br has been a common suggestion and think
that I have found more of what the problem is. (And it is kinda php specific
cause its php pages). Basically its not displaying it correctly on the page,
the text in the database is now being stored correctly (with lines
I am a novice in both PHP and MySQL, otherwise I would be able to do
this myself. :-)
A non-profit I assist has a table
(http://www.lbc4cc.org/04-05board.php) that is
displayed by a simple PHP script. That was fine last year, but now we
have some new officers and some new board members and I
are the officers id'ed by some column? if so then add
ORDER by COLUMN_NAME
bastien
From: Charles River [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Table sorting problem
Date: Thu, 12 Jan 2006 16:51:29 -0500
I am a novice in both PHP and MySQL,
At 05:51 PM 1/12/2006, Charles River wrote:
I am a novice in both PHP and MySQL, otherwise I would be able to do
this myself. :-)
A non-profit I assist has a table (http://www.lbc4cc.org/04-05board.php)
that is
displayed by a simple PHP script. That was fine last year, but now we
have some
On 1/12/06, Miles Thompson [EMAIL PROTECTED] wrote:
I'd cheat and add a numeric field, let's call it num_rank, ranking the
offices in the order you want them displayed, e.g.
President 10
Vice-President 20
.
.
.
Board Member50
Board Member50
10 matches
Mail list logo