juschillinnow, it may work, but i'm not sure how to implement that in my code because $sql varies depending on whether a field in a form is entered or not... here's part of the code ($artist and $title are text input from a form):
$sql="SELECT * FROM bpmdb_song WHERE hide='0'";
if (!empty($artist)) $sql.=" AND artist LIKE '%".addslashes($artist)."%'";
if (!empty($title)) $sql.=" AND title LIKE '%".addslashes($title)."%'";