Autocomplete jQuery & php problem
<p>i am trying to get a list of names from MySQL table useing php and jQuery autocomplete function but i get no result.could you help plz</p>

<p>here is jQuery </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" 
  type="text/javascript"&gt;&lt;/script&gt; 

&lt;script language="javascript" type="text/javascript"&gt;
  function findmatch(str){
    if (str.length&gt;0){
      $('#found').load('SelectQury.php?n='+str);
    }
  }//fun
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;div id="container"&gt;
    &lt;input type="text" name="text" id="textfield" autocomplete="off"    
     onkeyup="findmatch(this.value);"/&gt;
    &lt;div id="found" &gt;non found&lt;/div&gt;
  &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>php code</p>

<pre><code>if(isset($_POST['text'])){
    $s=$_POST['text'];

$query="SELECT FROM student WHERE name LIKE '$s%'";
$result=mysql_query($query) or die ('Wrong query : ' . mysql_error() );
$string='';
while($row = mysql_fetch_assoc($result)){
     $string.= $row['name'];
}
echo $string;
}else{
  echo 'wrong GET keywoord';

}//ifisset
</code></pre>
