Inicio ¿Sidebar? RSS @MisAlgoritmos at Twitter

Mexicanadas con UTF-8

Aquel que dude de la funcionalidad de utf8_decode, aquí le dejo una muestra de cómo el arduo trabajo de un buen mexicano puede llegar a hacer maravillas, y aclaro que yo no soy el autor de semejante atrocidad :P

How to paginate your SQL querys

On this post you will learn how to paginate an SQL query instead of showing all the rows, in order to avoid wasting time on the page load and at the same time save bandwidth.

Basically, we have to limit the SQL query and generate new queries similar to the original that gather the rest of rows to paginate.

Maybe this is not the best way to do this, but at least I will try to show you my own way.

Digg Style Pagination Class

Based on the modular version for the pagination, now I have created a version easier to implement, using classes for PHP version 4. The implementation is simple, is necessary to include the class with a require or an include. We defined basic properties for pagination such as an amount of elements to paginate, elements by page, page to which the element "page" will be sent, you need a CSS style and finally we generate the pagination to show it.