gpt4 book ai didi

mysql:identify 数据输入显示另一个数据

转载 作者:行者123 更新时间:2023-11-30 23:40:05 25 4
gpt4 key购买 nike

亲爱的大家..我有一个复杂的案例,必须进行一些故障排除。

我有一些连接到输入数据表的输入表单。

<input type="text" id="model" name="model"/>
<input type="text" id="serial" name="serial"/>
<input type="text" id="lot" name="lot"/>
<input type="text" id="line" name="line"/>

我有一张 table :

Model          Range_serial         lot        line
XD 1-100 11a 2

如果我输入 XD 我想要在 #model然后5#serial , 我可以显示 11a#lot2#line .

意思是,脚本从$('#model').val()读取数据和 $('#serial').val()然后发送并与数据库匹配。如果匹配批处理和行数据可以显示。

我仍然对识别号 5 感到困惑来自 1-100 .我需要你的指导来解决这个案子。可能有任何意见会带我前进。

最佳答案

我的理解

匹配模型值没问题

and for Range_serial match 使用mysql的between关键字查询匹配范围 1 - 100

并使用 jquery 显示匹配的批处理和行数据。

关于mysql:identify 数据输入显示另一个数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4093875/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com