Hello everyone, with a Code Snippet I load data from a table with these field names: date and name.
see code below:
$data = array();
$rs = DB::Select("members", $data );
while( $record = $rs->fetchAssoc() )
{
$newDate = date("d-m-Y", strtotime($record["date"]));
echo ($newDate);
echo(' - ');
echo ($record["name"]),'
';
}
if the date of a line is the same as today's date, I want to change the color of the text that corresponds to today's date. What code should I add to fix this? Or is it better to apply Javascript in the "onload Javascript" event?