I have two scripts. A search form and a main script that does the query and output...
On my searchform I have this
<?
session_start();
?>
and
<select size="7" name="selecttown" multiple>
<option value="village">viallge</option>
<option value="town">town</option>
</select>
(Of course other form code....)
The search posts to another scipt with the query containing variables....this script looks like
<?
session_start();
$pref="$selecttown";
session_register("pref");
and
$numresults = mysql_query("SELECT town, list_price, bedrooms, baths, room......(other stuf)
WHERE town = '$pref'"); // the query.
(Of course other code....but this is the important stuff....)
This will show the results correctly....execpt when I click on any of the pagination....results not found error.
if I hardcode the WHERE statement to a specific town it works great. I must not have the session configured correctly....I'll still work on it...but based on what I gave you above....does anything obvious jump out at you?