抱歉,如果我要問的是一個愚蠢的問題,但我一直在閱讀并嘗試可用的代碼,但它們都不起作用。這是我了解存儲多個復(fù)選框值的鏈接如何插入多個復(fù)選框值在數(shù)據(jù)庫中添加多個復(fù)選框值Mysqli-PHP 將多個復(fù)選框值存儲到一條記錄中我有一個帶有多個復(fù)選框的表單,我需要將值存儲到數(shù)據(jù)庫中。我現(xiàn)在的問題是它一直彈出這個錯誤解析錯誤:語法錯誤,意外的“$chk”(T_VARIABLE),期待“)”下面是我的代碼notification_form.php<div class="form-group row"> <label class="col-md-2 col-form-label">Potential Escalation: </label> <div class="col-md-5"> <input type="checkbox" id="potential_escalation[]" value="Under control with available resources. No potential of escalation" /> <text>Under control with available resources. No potential of escalation.</text> </div> <div class="col-md-5"> <input type="checkbox" id="potential_escalation[]" value="May requires additional resources (e.g. authorities, contractors, mutual aid groups)." /> <text>May requires additional resources (e.g. authorities, contractors, mutual aid groups).</text> </div></div><div class="form-group row"> <label class="col-md-2 col-form-label"></label> <div class="col-md-5"> <input type="checkbox" id="potential_escalation[]" value="Authorities may take over command and control" /> <text>Authorities may take over command and control.</text> </div> <div class="col-md-5"> <input type="checkbox" id="potential_escalation[]" value="May triggers significants authorities/ public community/ media interest." /> <text>May triggers significants authorities/ public community/ media interest.</text> </div></div>
將多個復(fù)選框值存儲到 php mysqli 數(shù)據(jù)庫中
慕田峪4524236
2022-12-22 09:43:21