Anonim / 7 years, 1 month ago | Download | Plaintext | Odpowiedz |

1
2
3
4
5
6
7
8
9
        for($x=0; $x<$amountDays; $x++)
        {
            $mysql_date = mysql_fetch_row(mysql_query("SELECT `hitsUnique` FROM `hitCounter` WHERE `date` LIKE '$month-" . ($x+1) . "'"));

            $visits[$x] = $mysql_date[0];
            if(!$visits[$x]) $visits[$x] = 0;
        }
        
        return $visits;