-4
    $results=mysql_query("SELECT count(*) as total FROM new where date>'$date' and erisim='1'   group by date_format(tarih,'%Y-%m') ");
   $array=mysql_fetch_array($results,MYSQL_ASSOC);

    echo $array[''];

1 か月あたりのカウント値を取得するには、$array[''] 内に何を入力する必要がありますか?

4

1 に答える 1

6
 $results=mysql_query("SELECT count(*) as Total FROM new where year(date)='$ss' and erisim='1'      group by date_format(tarih,'%Y-%m') ");

 while ($row = mysql_fetch_array($results, MYSQL_ASSOC)) {
    echo  $row["Total"] ;
 }
于 2012-08-03T08:41:47.840 に答える