날자계산 질문입니다.. ㅡㅡ;;
이거 별짓다해봐도 계속 오류만 나네요.
------------------------------------------------- 소스 ----------
<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 상관없고)
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4126 | ||
| 429 | 19년 전 | 3321 | ||
| 428 | 19년 전 | 4141 | ||
| 427 | 19년 전 | 3489 | ||
| 426 | 19년 전 | 3115 | ||
| 425 | 19년 전 | 3429 | ||
| 424 | 19년 전 | 2450 | ||
| 423 | 19년 전 | 2877 | ||
| 422 | 19년 전 | 2369 | ||
| 421 | 19년 전 | 3722 | ||
| 420 | 19년 전 | 4753 | ||
| 419 | 19년 전 | 3830 | ||
| 418 |
|
19년 전 | 1764 | |
| 417 | 19년 전 | 2761 | ||
| 416 | 19년 전 | 2408 | ||
| 415 | 19년 전 | 2613 | ||
| 414 | 19년 전 | 4430 | ||
| 413 |
|
19년 전 | 2623 | |
| 412 | 19년 전 | 3065 | ||
| 411 |
|
19년 전 | 3001 | |
| 410 |
|
19년 전 | 3706 | |
| 409 |
|
19년 전 | 3651 | |
| 408 |
|
19년 전 | 1871 | |
| 407 | 19년 전 | 2242 | ||
| 406 | 19년 전 | 2808 | ||
| 405 | 19년 전 | 2475 | ||
| 404 | 19년 전 | 4323 | ||
| 403 | 19년 전 | 3313 | ||
| 402 |
NeoGenesis
|
19년 전 | 4111 | |
| 401 | 19년 전 | 2619 | ||
| 400 |
|
19년 전 | 2525 | |
| 399 | 19년 전 | 2974 | ||
| 398 | 19년 전 | 2508 | ||
| 397 | 19년 전 | 2802 | ||
| 396 | 19년 전 | 2507 | ||
| 395 | 19년 전 | 3210 | ||
| 394 | 19년 전 | 1756 | ||
| 393 | 19년 전 | 3009 | ||
| 392 | 19년 전 | 2286 | ||
| 391 | 19년 전 | 2190 | ||
| 390 | 19년 전 | 2300 | ||
| 389 | 19년 전 | 2660 | ||
| 388 | 19년 전 | 2206 | ||
| 387 | 19년 전 | 4494 | ||
| 386 |
|
19년 전 | 2701 | |
| 385 |
|
19년 전 | 2509 | |
| 384 | 19년 전 | 3050 | ||
| 383 | 19년 전 | 3076 | ||
| 382 | 19년 전 | 3122 | ||
| 381 |
|
19년 전 | 2649 | |
| 380 |
|
19년 전 | 3031 | |
| 379 | 19년 전 | 2557 | ||
| 378 | 19년 전 | 2229 | ||
| 377 | 19년 전 | 2793 | ||
| 376 | 19년 전 | 2476 | ||
| 375 |
|
19년 전 | 2576 | |
| 374 | 19년 전 | 3834 | ||
| 373 | 19년 전 | 3287 | ||
| 372 | 19년 전 | 5009 | ||
| 371 |
세은아빠2
|
19년 전 | 2429 | |
| 370 | 19년 전 | 4511 | ||
| 369 | 19년 전 | 3121 | ||
| 368 | 19년 전 | 2920 | ||
| 367 | 19년 전 | 3746 | ||
| 366 | 19년 전 | 2671 | ||
| 365 | 19년 전 | 3757 | ||
| 364 | 19년 전 | 4029 | ||
| 363 | 19년 전 | 3465 | ||
| 362 | 19년 전 | 3499 | ||
| 361 | 20년 전 | 4122 | ||
| 360 |
hwatta
|
20년 전 | 2380 | |
| 359 | 20년 전 | 5123 | ||
| 358 | 20년 전 | 3674 | ||
| 357 | 20년 전 | 2620 | ||
| 356 |
sdesign1s
|
20년 전 | 2297 | |
| 355 | 20년 전 | 2777 | ||
| 354 | 20년 전 | 3041 | ||
| 353 | 20년 전 | 2807 | ||
| 352 |
|
20년 전 | 5788 | |
| 351 |
|
20년 전 | 2724 | |
| 350 |
|
20년 전 | 4313 | |
| 349 |
hwatta
|
20년 전 | 2202 | |
| 348 | 20년 전 | 7319 | ||
| 347 | 20년 전 | 2426 | ||
| 346 | 20년 전 | 3521 | ||
| 345 | 20년 전 | 4325 | ||
| 344 | 20년 전 | 2673 | ||
| 343 | 20년 전 | 3936 | ||
| 342 | 20년 전 | 3081 | ||
| 341 | 20년 전 | 4112 | ||
| 340 |
|
20년 전 | 5167 | |
| 339 |
|
20년 전 | 4251 | |
| 338 | 20년 전 | 5897 | ||
| 337 | 20년 전 | 2058 | ||
| 336 |
|
20년 전 | 3348 | |
| 335 |
|
20년 전 | 3565 | |
| 334 |
|
20년 전 | 2959 | |
| 333 |
hwatta
|
20년 전 | 2465 | |
| 332 | 20년 전 | 4668 | ||
| 331 | 20년 전 | 2293 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기