Focus mode

PHP Temel

GROUP BY

PDO GROUP

$sql = "SELECT COUNT(id) toplam, soyisim FROM test GROUP BY soyisim";
$query = $db->query($sql);

if ( $query->rowCount() ){
    print_r($query->fetchAll(PDO::FETCH_ASSOC));
}

Test

Comments

You need to enroll in the course to be able to comment!