|
PHP Classes
submitted by Idcmp at 04/06/1999, 23:04 (GMT+1)
If you're doing a fairly big website, you may find it
handy to take the time to move your SQL calls into their
own PHP3 classes (a Users class, an Inventory class, a Tips class, etc)
and create members to add/delete/modify/query
the database entries. This allows you to leave
webpages untouched incase you change databases, grow the
table or split things differently.
This also seperates the HTML display from the underlying logic
so that you can publish your class and others can integrate
it nicely into their existing website designs.
Browse all tips | Submit your tip |