megat
Posts: 7
|
| Posted: 10/06/2005, 8:01 PM |
|
hello,
i have a form and it limit to time period
for example registration start at 1 Oct 2005 and registration closed at 31 Oct 2005....
my sql statment is
//Custom Code @32-711ABE52
// -------------------------
global $register;
$db = new clsDBfoundation();
$current_date = date('yyyy-mm-dd');
$SQL = "SELECT date_start, date_end FROM subject_info WHERE subject_info_id=1";
$db->query($SQL);
if ($db->f("date_start") <= $current_date && $current_date <= $db->f("date_end")) {
header ("Location: register.php");
} else {
header ("Location: register_closed.php");
}
// -------------------------
//End Custom Code
if time it's run... but if i change a date_start or date_end it not true..
thank you
|
 |
 |
megat
Posts: 7
|
| Posted: 10/06/2005, 8:05 PM |
|
first time it's run... but if i change a date_start or date_end it not true..
thank you
|
 |
 |
|