<?php
$rowPlaces = '(' . implode(', ', array_fill(0, 13, '?')) . ')';
$allPlaces = implode(', ', array_fill(0, 50, $rowPlaces));
$sql = "INSERT INTO JoyKat.DomainReferrerStats (StatDate, DomainId, ReferrerId, FormFactorId, Country, Referrer, ReferrerSourceId, Visits, Revenue, Clicks, PageViews, Location, RevenueSource) VALUES " .
$allPlaces;
var_dump($sql);
preferences:
63.26 ms | 402 KiB | 5 Q