Using this query to bring up ringtones.
$result2 = mysql_query("select * from ringtones where (artist LIKE '%$artist%' or title LIKE '%$title%') and id!='$ringtoneid' limit 50");
Question is:
How to prevent from displaying all rows when $artist or $title are empty?
Without query variables involved (checking and putting appropriate query string in PHP variable).
Other “thoughts” about it?
Thanks.
Just add the additional condition: