Really, William, you should take some time off of the modifications and start learning PHP...
You have modified the following line (which is really three lines of code):
Code: Select all
echo "<br /><b>".langtransstr('Report for')." $yr "; echo isset($longmonths[$mo])?$longmonths[$mo]:''; echo "</b>\n;
to:
Code: Select all
echo "<br /><b>".langtransstr('Report for')." $months[$mo] ".$yr."</b><br />\n";
Do you have any idea why the 'isset' function was there in the first instance!
'isset' is there to test if the array '$longmonths[$mo]' is set and is not 'null':
- - If the array is not set (or is 'null'), then the 'echo' function will display the empty value of ''.
- If the array is set, then the 'echo' function will display the value of the array '$longmonths[$mo]'.
So, if for any reasons one of the '$mo' (month) value is not set or contains an invalid value, then your modified line will produce a PHP error...
As 'the other' Ray suggested, you should learn to 'crawl' into PHP before continuing even further into your trend to modify (and asking over and over) for help whenever you cannot figure out what to do (or why your modifications are not producing the results you are expecting).
And age has nothing to do with learning PHP - I started learning PHP some 6+ years ago - and I was in my late 50s at that time...