Only display the month once |
Hi, In my list below as you can see it has printed the word "Nov" & "Jan" multiple times
I use codeigniter with phpword to get the database results I would like the word of the month to only show once on the first one if has more than one like in this image Here is my controller code PHP Code: public function export() {
Code: $last_month = '*';
(12-12-2017, 10:03 PM)ivantcholakov Wrote: Sorry did not work repeated list multiple times. I have found solution'sn from this answer https://stackoverflow.com/questions/4778...name-shows
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
This very basic piece of code can not cause the effect you described. You should have used it as a replacement of your cycle.
|
Welcome Guest, Not a member yet? Register Sign In |