选项从数据库加载时选择问题

时间:2014-11-26 12:50:45

标签: php forms laravel blade

我正在加载选项从数据库中选择。它正确加载元素。但对于具有双重字符的行,我面临错误

<select>
<option value="Printed">Printed</option>
<option value="Yarn" dyed="">Yarn Dyed</option>
</select>

预期为

<option value="Yarn Dyed">Yarn Dyed</option>

这就是错误发生的原因,

这里我已经包含了参考代码

{{ Form::select('DupPackaging[0]', $packaging, '', array('class' => 'choiceSelect empty my_prs_sele', 'id' => 'DupPackaging1' )); }}

这是我的控制器

$tbl4 = DB::table('packaging')->where('Status', '=', 1)->orderBy('PackagName', 'asc')->get();

0 个答案:

没有答案