</body>
</html>
connect server
<?php
// Change the following to suit your own installation:
$host = "localhost";
$database = "Autocomplete";
$user = "root";
$password = "5116";
// You don't have touch a thing from here on unless you really want to:
mysql_connect($host,$user,$password);
mysql_select_db($database);
$sql ="SELECT title FROM autocomplete_demo WHERE title LIKE '%".$_POST["search"]."%'";
$rs=mysql_query($sql);
?>
<ul>
<?
while($result=mysql_fetch_array($rs))
{
?>
<li><? echo $result["title"];?></li>
<?
}
?>