it could be caching, viewing the source would be the most up-to-date, but some browsers (cough ie cough) will fetch a cached version of the site with ajax.
i have no pdo or mysqli either haha so its a lot of extra work for me. if/when mysql_ is deprecated then maybe people will realize it needs new hosting
if only. i'm just a pleeb working for a company! our main site is hosted legitly on linux with everything legit, this is just a business files site given to us for free on a windows xp server. nothing but problems with it!
Right, -1 month literally decreases the month number by 1, so it turns 2013-10-31 into 2013-9-31, which doesnt exist, so it makes it 2013-10-01
So its still pretty much hacky either way? I mean, what i'm doing works, i just dont understand how theres no native function in php that accurately can tell what the next and previous month are lol
How would you do this if you arent working off of today date, though? And doesn't this return october if you are on august 31 since theres no september 31
i knew mysqli was quite similar, but as a newer developer i picked PDO to broaden my knowledge. it seems like the more 'in' thing to use, anyways.
it could be caching, viewing the source would be the most up-to-date, but some browsers (cough ie cough) will fetch a cached version of the site with ajax.
its not by choice lol. running two sites one has the works on 5.5 the other is an abandoned POS that will never get upgraded.. hence php 4.4.7
fun quirk, if you are on october 31st and do -1 Months +1 Months you will end up in september
i have no pdo or mysqli either haha so its a lot of extra work for me. if/when mysql_ is deprecated then maybe people will realize it needs new hosting
if only. i'm just a pleeb working for a company! our main site is hosted legitly on linux with everything legit, this is just a business files site given to us for free on a windows xp server. nothing but problems with it!
using woefully outdated server on php 4.4.7 :(
Right, -1 month literally decreases the month number by 1, so it turns 2013-10-31 into 2013-9-31, which doesnt exist, so it makes it 2013-10-01
So its still pretty much hacky either way? I mean, what i'm doing works, i just dont understand how theres no native function in php that accurately can tell what the next and previous month are lol
How would you do this if you arent working off of today date, though? And doesn't this return october if you are on august 31 since theres no september 31
End of this list.
Back to top