RE: [PHP] Best Practice-HTML In Database
| From: | John Monfort | Date: | Mon, 30 Apr 2001 22:08:17 +0000 |
| Subject: | RE: [PHP] Best Practice-HTML In Database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-50922@lists.php.net to get a copy of this message | ||
Yes, I will need to provide searching capabilities.
Basically, I'm creating an online referencing system with a db backend.
A user will be able to search for a manual, and/or browse to a
particular section of the manual.
It's similar to the online PHP manual...at least, in concept.
So, in the long run, which will be more beneficial:
1) HTML code inside the db fields?
or
2) HTML URL inside the field?
__________John Monfort_________________
_+-----------------------------------+_
P E P I E D E S I G N S
www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___________________________________+-
On Mon, 30 Apr 2001, Mark Roedel wrote:
> > -----Original Message-----
> > From: John Monfort [mailto:monfort@kahuna.sdsu.edu]
> > Sent: Sunday, April 29, 2001 10:40 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] Best Practice-HTML In Database
> >
> >
> > Hello everyone,
> >
> > I'm curious. Which is the better practice?
> >
> > 1) Insert the HTML page (...HTML code) in the database ?
> >
> > or
> >
> > 2) Insert a URL in the database field, that points to the
> > HTML page?
> >
> > why?
>
> Will you ever want to do database-ish things with the contents of the
> page? (Allow somebody to search for words or phrases in the body, for
> example?)
>
>
> ---
> Mark Roedel (roedelm@letu.edu) || "There cannot be a crisis next week.
> Systems Programmer / WebMaster || My schedule is already full."
> LeTourneau University || -- Henry Kissinger
>
>