Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 mysql 数据库中创建搜索脚本时遇到问题。我尝试了很多脚本,但都失败了。我想做的是这样的:
数据库有一个表,2列(CODE,ID)
在搜索栏中输入最多 20 位的代码格式和代码的脚本显示 ID(最多 5 位)。所有这些都在一个网页中,最好是。提前致谢!
you can do this by like a example is below
$query = " SELECT * FROM scan WHERE CODE LIKE '%{$each}%' OR ID LIKE '%{$each}%'";