May
08
2009
Extending mysqli using classes in PHP
Escrito por: jamslug en GNU/Linux, General, Programación, tags: classes, crud, extend, MySQL, mysqli, PHP, SQL, tableThis week I had the opportunity to take place in a little “knowledge” race. Not a very difficult one, in fact the goal is pretty easy and certainly not the most impressive. Anyway, this simplicity allows me to explore a new way to achieve the result, an unexplored one.
Suppose you have a table like this:
And you want to deliver two different pages, one for admin and one for user. The admin page allows to do the usually CRUD part and the user page just present a list of records.
Lee el resto de esta entrada »

Entradas (RSS)