$dated will be one element from $row, specifically $row['dateD']. If $row is a row from a database it will be a singleton, not an array. Yet you are trying to reference an element of this singleton.
You can't just try to reference a month element. You're dealing with a string, not some kind of object.
You have several options. One is to use substr() to typographically pull out what you need. Another is to have Mysql separate out the date parts using its builtin date_format() function. A third would be to use PHP's strtotime() and getdate() functions to split the date up into parts.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.