AEDEDL, Short for 'Add, Edit, Delete, Enable, Disable, Listing'.
Since I've been redoing this kind of stuff way too much, I decided to create a class wich could handle this automatically, without having to rewrite code, or copy and paste it each time I wanted this functionallity.
Usually when I store info into a mysql-table, I use an id (auto_increment), and an active column, wich are what this class uses. If you don't have an active (enabled or disabled is probably more clear) column, you can still use it, if you like... : )
I've included a simple example to make things more clear... |