This is my code , everything works fine except $w which should be present week number .
$w="WEEKOFYEAR()";
I have declared everything and my code works when i hard code the week number
$w=13;
insert($actual,$target['value'],$country,$ini,$goal ,$comment,$an,$w,$con);
I get the following error : Instead of it showing week number 13; it is starting from 0