Don't have Telegram yet? Try it now!
http://blog.amit-agarwal.com/2010/06/25/using-php-to-search-a-mysql-database-and-return-paged-results/
Using PHP to search a MySQL database and return paged results