|
 |
|
ช่วยหน่อยครับเกี่ยวกับ การลงทะเบียนอ่ะครับ ถ้าผมทำระบบลงทะเบียน |
|
 |
|
|
 |
 |
|
ถ้าผมทำระบบลงทะเบียน แล้วจะเขียนโคด้ ว่า ถ้า เกินเวลาที่กำหนดในการลงทะเบียนก็จะไม่สามารถลงทะเบียนได้ ทำยังหรอครับ ช่วยหน่อยครับ เห็นพี่Zeve ให้โค้ด นี้ผมมา แต่ เวลาของคนลงทะเบียนคืออะไรหรอ
Code (PHP)
<?php
//กำหนดว่าวันที่เท่าไหร่ - เวลาเท่าไหร่ จะหมดสิทธิ์
$inTheEnd = mktime(2009, 02, 11, 15, 0, 0); //ปี, เดือน, วัน, ชม, นาที, วิ
//เวลาของคนลงทะเบียน
$nn = explode("-", date("Y-m-d-H-i-s"));
$registerTime = mktime($nn[0], $nn[1], $nn[2], $nn[3], $nn[4], $nn[5]);
// ที่เหลือก็กำหนดวิธีลงทะเบียน
if($registerTime >= $inTheEnd){
echo "Register ไม่ได้";
} else {
echo "Register ได้";
}
?>
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-02-12 22:52:34 |
By :
sanits |
View :
1261 |
Reply :
3 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมงง หรือคนถามงงครับนี่
|
 |
 |
 |
 |
Date :
2009-02-13 00:59:35 |
By :
ddsure |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แล้วครับขอบคุณมากๆ นะครับ
|
 |
 |
 |
 |
Date :
2009-02-13 15:08:01 |
By :
sanits |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|