$s = "INSERT INTO tabla (fecha) VALUES ('".date("Y-m-d")."')";$f = mysql_query($s) or die(mysql_error());