【发布时间】:2011-06-26 11:34:00
【问题描述】:
在我的 php 脚本中,
$names = $_GET['part'];
$result = mysql_query("SELECT * FROM namestable where names LIKE'%$names%' LIMIT 10");
while ($row = mysql_fetch_assoc($result)) {
$colors[]=$row['publishers'];
}
检查匹配并运行良好。
但是假设我的表有一个名字 Alfred,只有当我输入 Alfr 时才会出现建议,如果我输入 alfr 则不会出现
【问题讨论】:
标签: php jquery autocomplete jquery-autocomplete autosuggest