jquery AutoComplete Code:
The following code inside the search is dead, I want to according to the input content to go to the database query, the database is MySQL, the development environment is PHP
<title>Insert Title here</title>
Web Site:
I will
JS inside the websites written in my backstage path, or not.
search.php
$conn = mysql_connect (' localhost ', ' root ', ' 123456 ') or Die ("Database connection error"); Connecting to a database
mysql_query ("Set names ' UTF8 '");//Set encoded output
mysql_select_db (' Test '); Select Database
?>
$q =strtolower ($_get["website"]);
$sql = "SELECT * from Art where title like '% $q% ' limit 0,10";
$query =mysql_query ($sql);
while ($row =mysql_fetch_array ($query)) {
$city []= $row;
}
?>
foreach ($city as $k = = $v) {?>' > }?>
?>
Reply to discussion (solution)
Urgent and urgent urgent and urgent urgent
A man of great divine rank, pointing out the country
Http://www.markdream.com/code/phpjqueryui%E5%AE%9E%E7%8E%B0%E8%87%AA%E5%8A%A8%E5%AE%8C%E6%88%90%E6%8F%90%E7%A4%BA.shtml
Http://blog.sina.com.cn/s/blog_6925792f0100kng9.html
Look, if it doesn't work, I can't help you.
Code Boundless, brother, thank you so much. You can achieve the effect. Give points ....