날자계산 질문입니다.. ㅡㅡ;;
이거 별짓다해봐도 계속 오류만 나네요.
------------------------------------------------- 소스 ----------
<tr>
<td>생년월일</td>
<td><input type=text name="by_birthday" value="<?=$by_birthday?>"> </td>
<td colspan=3>
키<input type=text name="by_height" value="<?=$by_height?>">
몸무게 <input type=text name="by_weight" value="<?=$by_weight?>">
</td>
</tr>
<input type=hidden name="ba_50" value="<?=$ba_50?>">
<input type=hidden name="ba_100" value="<?=$ba_100?>">
<input type=hidden name="ba_365" value="<?=$ba_365?>">
------------------------------------------------------------------------
소스의 일부분인데요..
위에 by_birthday 부분의 변수에 입력받은 값에 ;
날자계산 소스
// 기준일
$temp_day = '2008-07-01';
$plus_day = date("Y-m-d", strtotime("+50 day", strtotime($temp_day)));
echo $plus_day; // 7.1 + 50일 날짜 출력
를 적용하여 50일..100일...356일을 더해서.. 각 히든 변수에 넣어 저장하려고 합니다.
어찌해야 하는지..
<input type=hidden name="ba_50" value="<?
$ba_50 = date("Y-m-d", strtotime("+50 day", strtotime($by_birthday)))
>">
이렇게 해야 하나요 ? ㅡㅡ;;
도움주시면 정말 감사하겠습니다.
이거 별짓다해봐도 계속 오류만 나네요.
------------------------------------------------- 소스 ----------
<tr>
<td>생년월일</td>
<td><input type=text name="by_birthday" value="<?=$by_birthday?>"> </td>
<td colspan=3>
키<input type=text name="by_height" value="<?=$by_height?>">
몸무게 <input type=text name="by_weight" value="<?=$by_weight?>">
</td>
</tr>
<input type=hidden name="ba_50" value="<?=$ba_50?>">
<input type=hidden name="ba_100" value="<?=$ba_100?>">
<input type=hidden name="ba_365" value="<?=$ba_365?>">
------------------------------------------------------------------------
소스의 일부분인데요..
위에 by_birthday 부분의 변수에 입력받은 값에 ;
날자계산 소스
// 기준일
$temp_day = '2008-07-01';
$plus_day = date("Y-m-d", strtotime("+50 day", strtotime($temp_day)));
echo $plus_day; // 7.1 + 50일 날짜 출력
를 적용하여 50일..100일...356일을 더해서.. 각 히든 변수에 넣어 저장하려고 합니다.
어찌해야 하는지..
<input type=hidden name="ba_50" value="<?
$ba_50 = date("Y-m-d", strtotime("+50 day", strtotime($by_birthday)))
>">
이렇게 해야 하나요 ? ㅡㅡ;;
도움주시면 정말 감사하겠습니다.
댓글 1개
sjsjin
17년 전
<input type=hidden name="ba_50" value="<?=date("Y-m-d", strtotime("+50 day", strtotime($by_birthday)));?>">
<input type=hidden name="ba_100" value="<?=date("Y-m-d", strtotime("+100 day", strtotime($by_birthday)));?>">
단, $by_birthday 라는 변수는 이전 페이지에서 넘어오는 값이라야 합니다.(post/get 상관없고)
<input type=hidden name="ba_100" value="<?=date("Y-m-d", strtotime("+100 day", strtotime($by_birthday)));?>">
단, $by_birthday 라는 변수는 이전 페이지에서 넘어오는 값이라야 합니다.(post/get 상관없고)
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2030 | 17년 전 | 2801 | ||
| 2029 | 17년 전 | 1605 | ||
| 2028 | 17년 전 | 1353 | ||
| 2027 | 17년 전 | 1614 | ||
| 2026 |
진정한승리
|
17년 전 | 2522 | |
| 2025 | 17년 전 | 1742 | ||
| 2024 | 17년 전 | 2021 | ||
| 2023 | 17년 전 | 1314 | ||
| 2022 |
SE7EN
|
17년 전 | 1052 | |
| 2021 | 17년 전 | 1129 | ||
| 2020 | 17년 전 | 2931 | ||
| 2019 | 17년 전 | 2475 | ||
| 2018 | 17년 전 | 2051 | ||
| 2017 | 17년 전 | 2053 | ||
| 2016 | 17년 전 | 1806 | ||
| 2015 | 17년 전 | 2255 | ||
| 2014 | 17년 전 | 2019 | ||
| 2013 | 17년 전 | 1988 | ||
| 2012 | 17년 전 | 1879 | ||
| 2011 | 17년 전 | 1218 | ||
| 2010 | 17년 전 | 1825 | ||
| 2009 | 17년 전 | 2231 | ||
| 2008 | 17년 전 | 2310 | ||
| 2007 | 17년 전 | 1642 | ||
| 2006 |
Arone
|
17년 전 | 1515 | |
| 2005 |
|
17년 전 | 1364 | |
| 2004 | 17년 전 | 2588 | ||
| 2003 |
suerte
|
17년 전 | 2683 | |
| 2002 |
suerte
|
17년 전 | 2084 | |
| 2001 |
suerte
|
17년 전 | 2425 | |
| 2000 |
|
17년 전 | 2730 | |
| 1999 |
|
17년 전 | 1333 | |
| 1998 |
|
17년 전 | 1200 | |
| 1997 | 17년 전 | 6335 | ||
| 1996 | 17년 전 | 1190 | ||
| 1995 | 17년 전 | 1634 | ||
| 1994 | 17년 전 | 1784 | ||
| 1993 | 17년 전 | 1111 | ||
| 1992 | 17년 전 | 1201 | ||
| 1991 | 17년 전 | 1898 | ||
| 1990 |
sdjsu
|
17년 전 | 1526 | |
| 1989 | 17년 전 | 3625 | ||
| 1988 |
smilesol
|
17년 전 | 1215 | |
| 1987 |
|
17년 전 | 1915 | |
| 1986 | 17년 전 | 1192 | ||
| 1985 | 17년 전 | 1396 | ||
| 1984 | 17년 전 | 2370 | ||
| 1983 | 17년 전 | 2028 | ||
| 1982 | 17년 전 | 1044 | ||
| 1981 | 17년 전 | 1051 | ||
| 1980 | 17년 전 | 1110 | ||
| 1979 |
오렌지76
|
17년 전 | 6055 | |
| 1978 |
오렌지76
|
17년 전 | 5855 | |
| 1977 | 17년 전 | 2043 | ||
| 1976 |
없어씨바라
|
17년 전 | 1034 | |
| 1975 | 17년 전 | 1121 | ||
| 1974 | 17년 전 | 2088 | ||
| 1973 | 17년 전 | 1522 | ||
| 1972 | 17년 전 | 1161 | ||
| 1971 |
smilesol
|
17년 전 | 1201 | |
| 1970 | 17년 전 | 1150 | ||
| 1969 |
smilesol
|
17년 전 | 1071 | |
| 1968 |
소행성블루
|
17년 전 | 3976 | |
| 1967 |
소행성블루
|
17년 전 | 2179 | |
| 1966 | 17년 전 | 1654 | ||
| 1965 |
소행성블루
|
17년 전 | 2782 | |
| 1964 |
고양Ol아빠
|
17년 전 | 1484 | |
| 1963 | 17년 전 | 1172 | ||
| 1962 | 17년 전 | 1191 | ||
| 1961 |
choijinhee
|
17년 전 | 1252 | |
| 1960 | 17년 전 | 1137 | ||
| 1959 | 17년 전 | 1257 | ||
| 1958 |
하이웹솔루션
|
17년 전 | 2413 | |
| 1957 | 17년 전 | 4195 | ||
| 1956 | 17년 전 | 1199 | ||
| 1955 | 17년 전 | 3955 | ||
| 1954 | 17년 전 | 4113 | ||
| 1953 | 17년 전 | 1239 | ||
| 1952 | 17년 전 | 2186 | ||
| 1951 | 17년 전 | 1624 | ||
| 1950 | 17년 전 | 3221 | ||
| 1949 | 17년 전 | 1368 | ||
| 1948 | 17년 전 | 3616 | ||
| 1947 | 17년 전 | 3408 | ||
| 1946 | 17년 전 | 2578 | ||
| 1945 | 17년 전 | 2945 | ||
| 1944 | 17년 전 | 2634 | ||
| 1943 | 17년 전 | 1953 | ||
| 1942 | 17년 전 | 3318 | ||
| 1941 | 17년 전 | 2630 | ||
| 1940 | 17년 전 | 3529 | ||
| 1939 |
|
17년 전 | 1167 | |
| 1938 | 17년 전 | 2253 | ||
| 1937 | 17년 전 | 1327 | ||
| 1936 |
smilesol
|
17년 전 | 1200 | |
| 1935 |
AHEEZII
|
17년 전 | 1065 | |
| 1934 |
smilesol
|
17년 전 | 1045 | |
| 1933 | 17년 전 | 1421 | ||
| 1932 | 17년 전 | 2863 | ||
| 1931 | 17년 전 | 3254 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기