'products' =>
array
0 =>
array
'pid' => string '3' (length=1)
'name' => string '#122232' (length=7)
'information' => string 'DSDSD' (length=5)
'image_tumb' => string '1tumbc4ad490017dc211002cfef359204ca7e154467_VisualVoicemail_Android_original.jpg' (length=80)
'tag' => string 'Sepatu' (length=6)
'price' => string '12000000.00' (length=11)
1 =>
array
'pid' => string '4' (length=1)
'name' => string 'Jam Bagus' (length=9)
'information' => string 'DSDSD' (length=5)
'image_tumb' => string '1tumbc4ad490017dc211002cfef359204ca7e_48447427_diaspora_dandy_logo.jpg' (length=70)
'tag' => string 'Jam' (length=3)
'price' => string '12000.00' (length=8)
2 =>
array
'pid' => string '6' (length=1)
'name' => string '#122232' (length=7)
'information' => string 'awdwad' (length=6)
'image_tumb' => string '1tumbc4ad490017dc211002cfef359204ca7e10408_710.jpg' (length=50)
'tag' => string 'Sepatu' (length=6)
'price' => string '140000.00' (length=9)
unlimited.
how do i display them like
name
name
name
name
<hr/>
name
name
name
name
<hr/>
or insert a hr after 4 times fetching ( currently useing PDO fecthall and foreach ) ?
// displays name loops like "namenamenamenamenamenametounlimiteddata"
foreach ($db['products'] as $product) {
echo "<div id='product'>";
echo $db[product][name];
echo "</div>";
}
but still no clue of doing the above. my friends say to use % sign in php? is that the best way ? if it is please give me an example how do it the right way, if there is a better way please describe it.
Thanks for looking in. Adam Ramadhan