Hi
My timetable have 5 periods on my school year. How I can check what is currently period?
|
Team Leader
|
![]() |
| 16Mar2007,18:03 | #2 |
|
Do you have some idea about going about the problem?? If you have we can elaborate/improve on your idea.
|
|
Light Poster
|
|
| 16Mar2007,18:12 | #3 |
|
Code:
$perioidstart = "1.2.2007";
$perioidend = "3.22.2007";
$today = "date("d.m.y");
if ($today > $perioidstart) {
if ($today < $perioidend) {
$period = 1;
}
}
|
|
Light Poster
|
|
| 16Mar2007,18:44 | #4 |
|
Now i know how to do.
Code:
date("ymd")
|

