Hi, I have linked your class script to my html form inorder to show the results of the criteria a user inputs for a search.
this is the code i had which works prior to adding the pagination script, but i am having issues trying to figure out how it needs to be formatted to fit into this class script.
if (empty($_POST['genre'])) { $where_genre = "true"; } else { $where_genre = "genre = '".$_POST['genre']."'"; }
if (empty($_POST['year'])) { $where_year = "true"; } else { $where_year = "year = '".$_POST['year']."'"; }
if (empty($_POST['title'])) { $where_title = "true"; } else { $where_title = "title LIKE '".$_POST['title']."'"; }
$sql = mysql_query("SELECT * FROM listings WHERE $where_genre AND $where_year AND $where_title");
any insight would be appreciated.
thanks!