buongiorno, ho un problemino...dovrei fare un check di scadenza...le date le gestisto in timestamp...vi risporto il codice.
$sql_check = "select * from ct_area where UNIX_TIMESTAMP(NOW()) - start_time > 648000 and id_user = '$id_user'";
$query_check = mysql_query($sql_check,$link);
$result = mysql_fetch_array($query_check);
if ($result == 0):
$color = "#ff00cc"; // se è attivo
else:
$color = "#ffffff"; // se è scaduto
endif;
648000 = 15 giorni mentre invece dopo 8 giorni mi dice che è scaduto