I have this bit of php
$sql = 'SELECT type, asset_id FROM assets';
echo $sql;
$result = $pdo->query($sql);
$assetArray = $result->fetchAll(PDO::FETCH_GROUP);
echo '<pre>';print_r($assetArray);echo '</pre>';
the result,
Array
(
)
but since im grouping by type, shouldnt the result be more like
Array
( [type1] = Array ()
[type2] = Array()
)
so if I
count($pduArray[type1];
I get 0