|
 |
|
บวกวันที่เพิ่มอีก 30 วัน คือผม select วันที่มาจาก DB เก็นไว้ในตัวแปร $data_mem["lm_end"] แล้วต้องการบวกเพิ่มอีก |
|
 |
|
|
 |
 |
|
ดูที่ เวบนี้ เลยคับ
คนที่เค้ามา comment เค้า เขียน code ที่คุณต้องการไว้แล้ว
แต่ผมไม่บอกนะว่า comment ไหน
ให้สังเกตจากสิ่งที่คุณอยากได้ คับ
|
 |
 |
 |
 |
Date :
2009-05-30 10:29:22 |
By :
nut_t02 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
https://www.thaicreate.com/php/php-date-add.html อันนี้ก็ได้
|
 |
 |
 |
 |
Date :
2009-05-30 10:30:17 |
By :
nongjen |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
งงครับ ช่วยทำให้ดูหน่อยครับ เช่น
$date = "2009-06-05";
จะเอาตัวแปรไว้ไงอ่ะครับ date('Y-m-d',strtotime("+1 day"));
|
 |
 |
 |
 |
Date :
2009-05-30 10:48:45 |
By :
Piyungkool |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
กำ
แสดงว่าไม่ได้ดูลิงค์ที่ผมให้ไว้เลย คนไทยร้อยเปอร์เซนต์ ชัว
ผมไม่ได้ว่า manual ที่ thaicreate ไม่ดีนะคับ
แต่ผมว่าถ้าอยากจะมีประสบการณ์เป็นของตัวเอง ควรหาอ่านให้เยอะๆ ไม่ใช่ว่าเป็นภาษาอังกฤษแล้วไม่ดูเลย
ดูวิธีใช้ที่ thaicreate แล้วยังไม่เข้าใจก็ไปดูว่าคนอื่นเค้าเขียนกันยังไง ที่ link ที่ผมให้ไว้
โลกคุณจะกว้างขึ้น นะคับ
เฉลยก็ได้ว่า commentไหน
|
 |
 |
 |
 |
Date :
2009-05-31 06:38:48 |
By :
nut_t02 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตื่นมาลับสมองกันแต่เช้าเลยหรอเนี้ย 
|
 |
 |
 |
 |
Date :
2009-05-31 06:47:47 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
echo date('Y-m-d', strtotime('+1 month'))."<br>";
echo date('Y-m-d',strtotime("now"))."<br>";
echo date('Y-m-d',strtotime("10 September 2000"))."<br>";
echo date('Y-m-d',strtotime("+1 day"))."<br>";
echo date('Y-m-d',strtotime("+1 week"))."<br>";
echo date('Y-m-d',strtotime("+1 week 2 days 4 hours 2 seconds"))."<br>";
echo date('Y-m-d',strtotime("next Thursday"))."<br>";
echo date('Y-m-d',strtotime("last Monday"))."<br>";
echo date("Y-m-d H:i:s", mktime(date("H"), date("i")+0, date("s")+0, date("m")+0 , date("d")+0, date("Y")+0))."<br>";
?>
|
 |
 |
 |
 |
Date :
2009-05-31 06:49:58 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|