Situation: first I will enter word in the search bar, and then how will the result be on the table? Please help me. I really need it for my thesis.
require('connection.php');
if (isset($_POST['submit']))
{
$param1=$_POST['search'];
$checker = true;
if(Empty($_POST['search']) || $_POST['search']==" ")
{
echo "Please Enter a Information";
$checker = false;
}
if($checker == true)
{
$result = mysql_query("SELECT * FROM user WHERE lastname LIKE %$param1% OR
firstname LIKE %$param1% OR middlename LIKE %$param1% OR IDno LIKE %$param1% OR username LIKE
%$param1% OR email LIKE %$param1% OR birthday LIKE %$param1% OR guardian LIKE %$param1% OR
gradelevel LIKE %$param1% OR section LIKE %$param1%;");
while ($row = mysql_fetch_assoc($result))
{
?????
}
}
}
?>