날자계산 질문입니다.. ㅡㅡ;;
이거 별짓다해봐도 계속 오류만 나네요.
------------------------------------------------- 소스 ----------
<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 상관없고)
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7030 | 11년 전 | 1403 | ||
| 7029 |
|
11년 전 | 3240 | |
| 7028 |
|
11년 전 | 1139 | |
| 7027 | 11년 전 | 1005 | ||
| 7026 | 11년 전 | 2082 | ||
| 7025 |
어려워요잉
|
11년 전 | 2740 | |
| 7024 | 11년 전 | 2103 | ||
| 7023 | 11년 전 | 3131 | ||
| 7022 |
Shhhh
|
11년 전 | 1526 | |
| 7021 |
|
11년 전 | 3269 | |
| 7020 | 11년 전 | 786 | ||
| 7019 |
막돼먹은영애
|
11년 전 | 1081 | |
| 7018 | 11년 전 | 1954 | ||
| 7017 | 11년 전 | 2313 | ||
| 7016 | 11년 전 | 1021 | ||
| 7015 | 11년 전 | 2825 | ||
| 7014 | 11년 전 | 3029 | ||
| 7013 | 11년 전 | 1518 | ||
| 7012 |
|
11년 전 | 2193 | |
| 7011 | 11년 전 | 1049 | ||
| 7010 | 11년 전 | 1402 | ||
| 7009 |
|
11년 전 | 1071 | |
| 7008 | 11년 전 | 2262 | ||
| 7007 | 11년 전 | 2181 | ||
| 7006 |
|
11년 전 | 1172 | |
| 7005 | 11년 전 | 5307 | ||
| 7004 | 11년 전 | 2357 | ||
| 7003 | 11년 전 | 3065 | ||
| 7002 | 11년 전 | 1915 | ||
| 7001 | 11년 전 | 954 | ||
| 7000 | 11년 전 | 2042 | ||
| 6999 |
|
11년 전 | 2160 | |
| 6998 | 11년 전 | 1876 | ||
| 6997 |
네이비칼라
|
11년 전 | 1490 | |
| 6996 | 11년 전 | 951 | ||
| 6995 |
|
11년 전 | 1849 | |
| 6994 | 11년 전 | 2573 | ||
| 6993 |
kimsdesign
|
11년 전 | 1296 | |
| 6992 |
|
11년 전 | 2773 | |
| 6991 | 11년 전 | 1717 | ||
| 6990 | 11년 전 | 4470 | ||
| 6989 | 11년 전 | 1850 | ||
| 6988 |
네이비컬러
|
11년 전 | 2507 | |
| 6987 | 11년 전 | 3723 | ||
| 6986 |
잘살아보자
|
11년 전 | 1591 | |
| 6985 |
잘살아보자
|
11년 전 | 2467 | |
| 6984 | 11년 전 | 818 | ||
| 6983 |
천재조상훈
|
11년 전 | 1853 | |
| 6982 |
천재조상훈
|
11년 전 | 4489 | |
| 6981 |
천재조상훈
|
11년 전 | 1618 | |
| 6980 |
|
11년 전 | 1869 | |
| 6979 |
|
11년 전 | 749 | |
| 6978 |
잘살아보자
|
11년 전 | 1137 | |
| 6977 |
잘살아보자
|
11년 전 | 1465 | |
| 6976 |
잘살아보자
|
11년 전 | 1574 | |
| 6975 |
천재조상훈
|
11년 전 | 1477 | |
| 6974 |
잘살아보자
|
11년 전 | 2231 | |
| 6973 |
잘살아보자
|
11년 전 | 1153 | |
| 6972 |
잘살아보자
|
11년 전 | 3068 | |
| 6971 |
잘살아보자
|
11년 전 | 3273 | |
| 6970 |
잘살아보자
|
11년 전 | 1839 | |
| 6969 |
잘살아보자
|
11년 전 | 4762 | |
| 6968 | 11년 전 | 9896 | ||
| 6967 |
|
11년 전 | 2632 | |
| 6966 |
|
11년 전 | 1111 | |
| 6965 | 11년 전 | 3256 | ||
| 6964 | 11년 전 | 2579 | ||
| 6963 | 11년 전 | 2100 | ||
| 6962 |
star3840
|
11년 전 | 1015 | |
| 6961 | 11년 전 | 4241 | ||
| 6960 |
|
11년 전 | 715 | |
| 6959 | 11년 전 | 1238 | ||
| 6958 |
|
11년 전 | 1666 | |
| 6957 | 11년 전 | 1889 | ||
| 6956 |
잘살아보자
|
11년 전 | 1850 | |
| 6955 | 11년 전 | 4625 | ||
| 6954 | 11년 전 | 1625 | ||
| 6953 |
잘살아보자
|
11년 전 | 860 | |
| 6952 |
잘살아보자
|
11년 전 | 2042 | |
| 6951 | 11년 전 | 1610 | ||
| 6950 | 11년 전 | 2611 | ||
| 6949 |
잘살아보자
|
11년 전 | 883 | |
| 6948 | 11년 전 | 1552 | ||
| 6947 | 11년 전 | 1464 | ||
| 6946 | 11년 전 | 1603 | ||
| 6945 | 11년 전 | 1227 | ||
| 6944 | 11년 전 | 1184 | ||
| 6943 | 11년 전 | 1229 | ||
| 6942 | 11년 전 | 1570 | ||
| 6941 | 11년 전 | 1656 | ||
| 6940 | 11년 전 | 1753 | ||
| 6939 | 11년 전 | 1663 | ||
| 6938 | 11년 전 | 1940 | ||
| 6937 | 11년 전 | 1149 | ||
| 6936 | 11년 전 | 1346 | ||
| 6935 | 11년 전 | 1298 | ||
| 6934 | 11년 전 | 1465 | ||
| 6933 | 11년 전 | 1972 | ||
| 6932 | 11년 전 | 1530 | ||
| 6931 | 11년 전 | 1534 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기