there's at least 3 ways to do it: -
- forms
- sessions (yes, but may not be the best)
- by via URL...
It can be easily done using forms...U can use Hidden fields.
The basic format is: -
<form name="PassVariables" type="post" action="PageTwo.php">
<input type="hidden" name="Variable1" value="ValueFromQuery">
</form>
Please note that 'ValueFromQuery' shd be something like
"<?php echo $query_result[0]; ?>" where $query_result is the Array variable to display the results from the query to ur db.
Then on the next page, PageTwo.php, u can try to see if the results are correct by:
echo $Variable1;
Hope i have helped, not add 2 ur confusion..