I created search function. After searching the results it displayed to another page and it was succeed. I had a 2 results and displayed to table. The problem is those 2 results were displayed into two tables. I want to make it as 1 table and inside of that table is the result (s).
These are the codes.
<?php
if(mysql_num_rows($raw_results) > 0){ // if one or more rows are returned do
following
while($results = mysql_fetch_array($raw_results)){
echo "<div id= 'table_wrapper'>";
echo "<table border='1' style='border: 1px solid black;'>";
echo "<tr>";
echo "<th> ID: </th>";
...
echo "</tr>";
echo "<tr>";
echo "<td>" .$results['id']."</td>";
...
echo "</tr>";
echo "</table>";}}
else{ // if there is no matching rows do following
echo "No results";}}
else{ // if query length is less than minimum
echo "Minimum length is ".$min_length;}
?>