|
Im trying to display all my results, and then a form that allows the user to perform and different search query, this all works fine. the problem im having is with the while loop, all but one of my query results are displayed then my form is displayed then the last query result. how to i make it so all results are displayed then the form.
the sliver of main.php code were dealing with looks something like this.
while ($row_sql = (mysql_fetch_array($query))){
echo <table="asdf">;
echo $row_sql[blah blah blah];
}
?>
<html>
<form name="form1" method="post" action="main.php" target="iframe_****">
<label>
<input name="page" type="submit" class="myinputstyle" id="page" value="1">
<input name="page" type="submit" class="myinputstyle" id="page" value="2">
</html>
|