First, be sure you name your result frame, for example:
<FRAME NAME="result" SRC="default.php">
Now put a form in your query frame that writes to the result frame, like this:
<FORM method="post" ACTION="results.php" TARGET="result">
TARGET="result" tells the form to load results.php (which should display the results of the query) in the frame named "result".
HTH,
Beth
p.s. If you need more information on creating and using frames, look for HTML user guides and HTML tutorials. There are plenty of them on the web.