For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2004 > PHP database site - lots of files!! - Any better ways?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP database site - lots of files!! - Any better ways?
Chris Morley

2004-09-26, 3:55 pm

Hi, im writing my first proper PHP site for ordering services online. The
problem I'm finding is that I am ending up with loads of different files....
indeed many for each table I want to administer.

Among other things, I have a tables of packages, add-ons, payment methods
etc. For example, the packages require lots of individual files for admin
purposes (add/delete/edit):

form_edit_packages.php // form for listing all packages, user clicks package
description to edit
form_edit_package.php // form for editing a package
insert_package.php // sql script for inserting new packages. called on
submit on form_edit_package
delete_package.php // sql script for deleting packages. called on submit
from form_edit_packages
update_package.php // sql script for updating packages. called on submit
from form_edit_package, if 'editing'

Is there a better way to go about this? As you can see I need to create the
above files for each table in that database..

Thanks in advance, is very much appreciated.

Chris


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com