Hello everyone.
I am using the TO_CHAR function to change the format of my date... but I can't seem to get it to work.
this is my select:
$selectquery = "select news_id, news_title, news_article, TO_CHAR(news_date,'d MONTH') from news";
I then try to go though the results like so and print the date among other things:
while (OCIFetchInto($statement, $data, OCI_ASSOC)){
print"$data[NEWS_DATE]";
}
but the date never comes out... I don't get it... if I remove the TO_CHAR function from my query, it's fine... but of course in the wrong format... hmmmmmmm
does anyone know what I could be doing wrong?
Thanks :-)