Onuraygun adlı üyeden alıntı: mesajı görüntüle
$toplam = 0;
                                $ucus = $db->query("SELECT SUM(pax), tarih FROM rezervasyonlar GROUP BY tarih", PDO::FETCH_ASSOC);
                                    if ( $ucus->rowCount() ){
                                     foreach( $ucus as $q){
                                          $pax = $q['pax'];
                                        $tarih = $q['tarih'];
                                         $hash = $q['hash'];
                                        $cocuk = $q['cocuk'];
                                        $free = $q['free'];
                                        $toplam = $toplam+$pax;
buyrun hocam

$toplam = 0;
$ucus = $db->query("SELECT SUM(pax) AS tt, tarih FROM rezervasyonlar GROUP BY tarih", PDO::FETCH_ASSOC);
echo $q['tt'];
Eğer olmazsa bağlantı programı ver bakalım bi