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));
}
Quiz
Answer the questions to check your understanding.
This lesson includes a short quiz.
Lesson discussion
Swap insights and ask questions about PHP Temel
Be the first to start the discussion
Ask a question or share your thoughts about this lesson.