I'm working on a church site which has many events before 1970
, these events starts from 1001
to today, how can I store the dates in MySQL
?
$y = $_REQUEST["year"];
$m = $_REQUEST["month"];
$d = $_REQUEST["day"];
$date = date("Y-m-d", "$y/$m/$d");
This works fine only for dates after 1970
, how can I store dates before this year?
What kind of datatype should I have in MySQL
? Now I've set my column to date
type
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…