-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>