Hi,
I have a table with a timedate collumn. I want to get the text of the article and its creation date, than to output them on my page.
How can I just get only the date value from a query or php script manupulation?
devilhacker
0
Unverified User
Recommended Answers
Jump to PostSELECT *,DATE(add_date) AS `date` FROM `scms_latest_news`
Then you can use:
$row['date']
All 4 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
blocblue
238
Posting Pro in Training
Featured Poster
devilhacker
0
Unverified User
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.