Hi,
How can i find the date difference in hours using php and mysql both.
Thanks
Avinash
Hi,
How can i find the date difference in hours using php and mysql both.
Thanks
Avinash
Use TIMEDIFF()
then take the part before the first colon to get the hours.
For MySQL there are a number of DATE/TIME functions, DATEDIFF(), SUBDATE(), SUBTIME()