CodeIgniterPHP time comparison problem codeigniter php
Write a 20131010 date
Then, if the current system time is 20131113
How can I use CodeIgniter to get the current system time?
If the 20131010 date and 20131113 are compared
If (){
Alert (the current date is within 10 days)
} Else if (){
Alert (now the date has exceeded 10 );
}
How to implement PHP code?
Please help me.
Reply to discussion (solution)
Write a 20131010 date
Then, if the current system time is 20131113
How can I use CodeIgniter to get the current system time?
If the 20131010 date and 20131113 are compared
If (){
Alert (the current date is within 10 days)
} Else if (){
Alert (now the date has exceeded 10 );
}
How to implement PHP code?
Please help me.
---------------------------------------------
The correct time format is 23:59:59 comparison
Write a 20131010 date
Then, if the current system time is 20131113
How can I use CodeIgniter to get the current system time?
If the 20131010 date and 20131113 are compared
If (){
Alert (the current date is within 10 days)
} Else if (){
Alert (now the date has exceeded 10 );
}
How to implement PHP code?
Please help me.
---------------------------------------------
The correct time format is 23:59:59 comparison
-----------------------------------------------------------
There is no need to compare the current system time to the two time periods.
The CI framework time is the same as the time for writing code.
]
$ Old) {echo "time 10 days ago";} else {echo "time less than 10 days" ;}?>