Dynamic number of results in search form
Hi Ray
I have a search page which works fine. I'd like to add a elect list where the user can specify the max number of results to be returned in a page.
I notice that the first line of the recordset specifies this:
$WADAresults = new WA_MySQLi_RS("WADAresults",$connDB_i,50);
in this case, 50 records.
I've noticed that other form fields use code such as
echo((isset($_GET["S_FirstName"]))?$_GET["S_FirstName"]:"")
to display the searched criteria.
I've tried to combine the two, without success - is it possible, so it's something like:
$WADAresults = new WA_MySQLi_RS("WADAresults",$connDB_i,echo((isset($_GET["Display"]))?$_GET["Display"]:""));
Is there a better way?
Many thanks
Chris