$datas = array();
while($row = mysql_fetch_array($firstQueryResult)) {
$phones["Id"] = $row['person_id'];
$phones["Latitude"] = $row['lat'];
$phones["Longitude"] = $row['lng'];
$phones["Distance"] = $row['distance'];
$phones["DateTime"] = $row['location_datetime'];
$datas["mydata"][] = $phones;
}
echo "Count = ".count($datas); // always returning 1 while i have more than 1 recor
echo "Count = ".sizeof($datas); // always returning 1 while i have more than 1 record
Anyone can please help me.
echo "Count = ".count($datas['mydata']);