array_fill() must have three parameters
What you have now is
$query =
sprintf(
"INSERT INTO affleads VALUES " .
implode(
","
, array_fill(
[COLOR="Green"][B] 0 <-- first parameter
, $number <-- second parameter
, "('','%s',%s,'%s','MANUAL','MANUAL','','','Pending','',%s,%s,'%s','%s')" <-- third parameter[/B][/COLOR]
[COLOR="Red"][B], quote_smart($proid) <-- fourth parameter
, quote_smart($pname) <-- ecc
, quote_smart($affid)
, quote_smart($affpayout)
, quote_smart($netpayout)
, quote_smart($datenow)
, quote_smart($timenow)[/B][/COLOR]
[B]) <-- closes array_fill[/B]
) <-- closes implode
) <-- closes sprintf
;
Instead it should be
$query =
sprintf(
"INSERT INTO affleads VALUES " .
implode(
","
, array_fill(
[COLOR="Green"][B] 0 <-- first parameter
, $number <-- second parameter
, "('','%s',%s,'%s','MANUAL','MANUAL','','','Pending','',%s,%s,'%s','%s')" <-- third parameter[/B][/COLOR]
[B]) <-- closes array_fill[/B]
, quote_smart($proid)
, quote_smart($pname)
, quote_smart($affid)
, quote_smart($affpayout)
, quote_smart($netpayout)
, quote_smart($datenow)
, quote_smart($timenow)
) <-- closes implode
) <-- closes sprintf
;
Which doesn’t make much sense anyway. What exactly are you trying to do?