Tag Archives: mysql

(PHP) Simple MySQL Search Function

A quick and simple way to search a MySQL database. Example: mysql_search(‘items’, ‘title tags’, isset($_GET['q'])?$_GET['q']:”, Array(‘columns’=>’*’, ‘method’=>’OR’, ‘extra_sql’=>’AND active = “true” ORDER BY id DESC’));

Posted in PHP | Also tagged , , , , | Leave a comment

Abstract database models with PDO MySQL (Zend Framework)

Zend Framework allows you to create models which extendA�Zend_Db_Table_Abstract. The shelf life of prevacid. snippets below demonstrate abstract database models.

Posted in PHP | Also tagged , , , , , , | 1 Comment