<?php
             if(isset($_POST['completedsearch']))
            {
                $term = $_POST['query'];
                $mysql = mysql_connect("localhost","yourusername","yourpassword");
                 mysql_select_db("yourdatabase");
                $qu = mysql_query("SELECT * FROM your_table WHERE condition1 LIKE '%{$term}%' OR condition2 LIKE '%{$term}%' OR condition3 LIKE '%{$term}%' OR condition4 LIKE '%{$term}%' "); //selects the row that contains ANYTHING like the submitted string
                 echo "
                        <th>Condition 1 Results</th>
                        <th>Condition 2 Results</th>
                        <th>Condition 3 Results</th>
                               <th>Condition 4 Results</th>
                        ";
                 while($row = mysql_fetch_array($qu))
                      {
Â
                         echo "<tr><td>"; Â
                         echo $row['condition1'];
                         echo "</td>";
                         echo "<td>";
                         echo $row['condition2'];
                         echo "</td>";
                         echo "<td>";
                         echo $row['condition3'];
                                                          echo "</td><td>";
                                                          echo $row['condition4'];
                             echo "</tr></td>";
                }
            }
        ?>