1
SQL視圖文件-retrieve數據這是通過控制器笨 - 從分批
array (size=2)
'wholesale_records' =>
array (size=2)
0 =>
object(stdClass)[36]
public 'id' => string '117' (length=3)
public 'product_id' => string '60' (length=2)
public 'usertype' => string 'wholesale' (length=9)
public 'range' => string '1' (length=1)
public 'uom' => string '3' (length=1)
public 'price' => string '1' (length=1)
public '[email protected]' => string '1' (length=1)
1 =>
object(stdClass)[37]
public 'id' => string '119' (length=3)
public 'product_id' => string '60' (length=2)
public 'usertype' => string 'wholesale' (length=9)
public 'range' => string '3' (length=1)
public 'uom' => string '3' (length=1)
public 'price' => string '3' (length=1)
public '[email protected]' => string '3' (length=1)
'wholesale_count' => int 2
我從模型文件的反應,但我想在我輸入佔位符,以顯示這些,但我在顯示 這是得到錯誤我的查看文件
<?php
for ($i = 0; $i < $wholesale['wholesale_count']; $i ++) { ?>
<div class="section row" id="row1" style="margin-bottom:0px;">
<div class="col-sm-3">
<div class="form-group">
<label class="field">
<input type="text" name="range1" id="amount"
class="gui-input" placeholder="<?php echo $wholesale['wholesale_records'][ $i ]['range']; ?>"
required>
</label>
</div>
</div>
</div>
<?php } ?>
謝謝你這麼多.. –