mysql_connect("localhost","phebe","phebepasswd"); mysql_select_db("phebe"); $meetday = $_POST["date"] . " " . $_POST["h"] . ":" . $_POST["m"] . ":" .$_POST["s"]; if(!empty($_POST["date"])){ $sql = "REPLACE INTO `meetday` (`id`, `meetday`) VALUES ('1', '$meetday')"; if(mysql_query($sql)){ header("location:index.php"); } } ?>