Search result display on the same page in div

     

I have tried some code for searching database table entries. The code is working good. I want to display result in div on same page.I can't get the Ajax code for this. I have tried so many times.


form


          



  

result.php


if($_POST['click']) {   $keyword = mysqli_real_escape_string($con$_POST['query']); // always escape   $keys = explode(" " $keyword);
$sql="SELECT c.*