-1
我有一个网页表单,它将零件号码保存在3个拆分文本框中。我想将这个零件编号保存到数据库中,作为零件编号的id号。是否有任何方法可以将编号连接起来,然后与id值进行比较并在插入语句中使用?我在某处读到了你可以使用implode函数来做到这一点。我确实使用了implode来存储日期,但对于这个问题迄今为止,它没有帮助。将PHP插入数据库
<td onmouseover="document.getElementById(\'id_nr_1\').focus();">
Stücklistennummer'.$pflicht_id_nr.'
</td>
<td align="left" onmouseover="document.getElementById(\'id_nr_1\').focus();">
<input type="text" class="'.$html_klasse_id_nr_1.'" id="id_nr_1" name="id_nr_1" size="2" maxlength="4" value="'.htmlspecialchars($_REQUEST["id_nr_1"]).'" onfocus="this.focus();" onkeyup="FocusWeiter(this.id, \'id_nr_2\');">
<input type="text" class="'.$html_klasse_id_nr_2.'" id="id_nr_2" name="id_nr_2" size="1" maxlength="3" value="'.htmlspecialchars($_REQUEST["id_nr_2"]).'" onfocus="this.focus();" onkeyup="FocusWeiter(this.id, \'id_nr_3\');">
<input type="text" class="'.$html_klasse_id_nr_3.'" id="id_nr_3" name="id_nr_3" size="1" maxlength="3" value="'.htmlspecialchars($_REQUEST["id_nr_3"]).'" onfocus="this.focus();" onkeyup="FocusWeiter(this.id, \'id_nr_4\');">
</td>
</tr>