Turn Current Date in Custom Field Ouput Green or Red

Changing the text/background colour is easy W3 Schools. You can do this with javascript or easier just add a style to the <div> with a PHP condintion

<?php
if ( $due == true )
    echo '<div style="color: red">';
else
    echo '<div style="color: black">';
?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)