Simple MySQL Search Function


/ Published in: PHP
Save to your folder(s)

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'));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.