[thelist] Client Updates to SSI .inc file

Casey Crookston casey at thecrookstons.com
Wed Jul 28 20:53:17 CDT 2004


----- Original Message -----

> > Can't you use a form for them to input the data and write a simple
> > server-side script (ASP/PHP) to append the data to the inc file?
>
> Yeah, could do that, but newly added stores would need to be added in
> alphabetical order (first by state, then by store name), not simply
appended
> to the end of the file. Is there a simple scripting technique to do that?
Or
> alternatively, to read and display the newly appended list in the desired
> order?

I'm a tad suprised nobody has mentioned this...

This is a classic database job.  Put all the data into Acess or MySQL.  To
make it alphabetical, just put an ORDER BY in the query.  Spit the data out.
Then build a back-end system for them to add and edit.

Don't screw around with text files or .inc files ot tab-delimted or any of
that screwy stuff.  Just do it right!

Casey







More information about the thelist mailing list