i'm trying to make a live search but it's not working. the code was base on the tutorial from you tube. i wonder if this have an issue running on localhost or maybe i really have a problem on the code. this is my first time working on AJAX. whenever i'm typing some text, it doesn't show any result.
  ---index.php----
   <?php include ("includes/connect.php"); ?> 
   <html>
      <head>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
        <script type="text/javascript">
            function getClients(value){
                $.post("getClients.php",{partialClients:value},function(data)
                 $("#results").html(data);
            });
         }
        </script>
   </head>
   <body>
         <input type="text" onkeyup="getClients(this.value)"></input>
         <br>
         <div id="results"></div>
  </body>
  </html>
   -----getClients.php---
  <?php
     include "includes/connect.php"
     $partialClients= $_POST['partialClients'];
     $client = mysql_query("select * from clients WHERE client like    '%$partialClients%'  ");
     while ($clientArray = mysql_fetch_array($client)) {
        echo "<div>" .$state['client']. "</div>";
    }
   ?>
    
include "includes/connect.php"should be like thisinclude "includes/connect.php";select clientand printing$state['name']... useSELECT *...and$clientArray['name']