Menu
In my code I would like to compare a date held in a MYSQL table with the current date.
The name of the field is ‘dateAdded’, the datatype for this field is DATE, format 0000:00:00
Here in the UK we tend to use dd/mm/yyyy format.
I want a row of table to be displayed in RED if the dateAdded value is < todays date.
something like:
if dateAdded < date()
{
// print in red
}
else
{
// print in black
}
Not sure how to go about this though.
John