RE: [PHP] Best Practice-HTML In Database
| From: | Mark Roedel | Date: | Tue, 01 May 2001 13:20:16 +0000 |
| Subject: | RE: [PHP] Best Practice-HTML In Database | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50953@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: John Monfort [mailto:monfort@kahuna.sdsu.edu]
> Sent: Monday, April 30, 2001 5:08 PM
> To: Mark Roedel
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Best Practice-HTML In Database
>
>
> 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?
Well, I know I'm going against most of the rest of the responses you've
gotten, but if you think you're going to need to do databasey things
with the material, it makes sense to me to put it in a database.
Having said that, I do agree with a lot of what the other posters have
said regarding things like the impact on ease of maintenance, waste of
storage space, etc.
If it were me, I think I'd be looking for a way to only store the actual
text in the database, with some PHP scripting to apply whatever
formatting/template is needed to generate the page you want to present.
---
Mark Roedel (roedelm@letu.edu) || "There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full."
LeTourneau University || -- Henry Kissinger