using +1 months or next month, -1 months or last month always seem to bug out when you are on the 31st of a month or the 1st, or anything next to february. i have been using this with yyyy-mm-dd: $date = date('Y-m-d'); $l = date('j', strtotime($date)); $lm = "$date -$l Days"; $lm = date('F', strtoti...
If anyone remembers, i made a post on here about determining next and last month in php, and i confessed i was stuck on php 4.4.7! Great news everyone, convinced people to upgrade the POS for me, and i'm going transition everything to PDO to avoid injections and stuff. I understand prepared statemen...
Maybe not the best place to ask but i need to cut out an image off a pure white background and im having a nightmare of a time using just an eraser or any lasso tool. anyone have secret ways of doing this that i dont know of?
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
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.
using woefully outdated server on php 4.4.7 :(
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
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.