在我的 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