Hi,
I would like to define business targets depending on the month (which is defined in a string column name 'Date' of my excel file). It would look like this :
switch ($_SESSION['Username']) {
case 'LBENOIT':
if ($data["Date"] == 'JANVIER' || $data["Date"] == 'FEVRIER' || $data["Date"] == 'MARS' ) {
$objectif_FAS = 22500;
$objectif_REC = 600;
} else {
$objectif_FAS = 2500;
$objectif_REC = 6;
}
break;
I put the code at the top of my index file, but it doesnt work. What should I do ?
Thanks !