Hi,
Relatively new to PHP coding so Im hoping this isnt too simplistic :-)
In the following piece of code, I notice that between the second and fourth lines it was incrementing my day array by one!! I had to reverse it to get it to work! Is this the way that the for loop is supposed to work?? I.e. it increments after encountering the first instance of $i?!? Or is the problem with the jddayofweek function?
Thanks to anyone who can help!
Nathan
for ($i = 0; $i <= 6 ; ++$i) {
printf("<option value=" . $dayarr[$i] . ">");
$dayarr[$i] = $dayarr[$i] - 1;
printf(jddayofweek($dayarr[$i], 0));
printf ("</option>");
}