Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $pengunjung = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM statistik WHERE tanggal='$tanggal' GROUP BY ip"));
- // $totalpengunjung = mysqli_result(mysqli_query($conn,"SELECT COUNT(hits) FROM statistik"),0);
- /*
- while ($row = $result->fetch_row()) {
- printf ("%s (%s)\n", $row[0], $row[1]);
- }
- */
- $ar = mysqli_fetch_row(mysqli_result(mysqli_query($conn,"SELECT COUNT(hits) FROM statistik"),0) );
- $totalpengunjung =$ar[0];
- $hits = mysqli_fetch_assoc(mysqli_query($conn,"SELECT SUM(hits) as hitstoday FROM statistik WHERE tanggal='$tanggal' GROUP BY tanggal"));
- $totalhits = mysqli_result(mysqli_query($conn,"SELECT SUM(hits) FROM statistik"),0);
- $tothitsgbr = mysqli_result(mysqli_query($conn,"SELECT SUM(hits) FROM statistik"),0);
- $bataswaktu = time() - 300;
- $pengunjungonline = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM statistik WHERE online > '$bataswaktu'"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement