mysql:识别数据输入以显示另一个数据
亲爱的..我有一个复杂的案例,必须要有一些故障排除。
我有一些连接到输入数据表的输入表单。
<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"/>
我有一张桌子像:
Model Range_serial lot line
XD 1-100 11a 2
我想如果我在#model
中输入XD
然后在#serial
输入5
,我可以在#lot
显示11a
,在#line
显示2
。
这意味着,脚本从$('#model').val()
和$('#serial').val()
读取数据然后发送并与DB匹配。如果匹配批次和行数据可以显示。
我仍然对1-100
中的识别号码5
感到困惑。我需要你的指导来解决这个案子。可能有任何意见会带我前进。
没有找到相关结果
已邀请:
2 个回复
桔马牛
芯伶句餐绕
函数找到
的位置,并使用mys的
函数在查询中使用该位置查找左右值