suzzane2020 Posted April 16, 2007 Share Posted April 16, 2007 I get an error when i use the date_diff function??? why Call to undefined function: date_diff() sorry for the rebounce ..there was a typo in my subject Link to comment https://forums.phpfreaks.com/topic/47251-date_diff-does-not-work/ Share on other sites More sharing options...
suzzane2020 Posted April 16, 2007 Author Share Posted April 16, 2007 i have checked google but can still find date_diff being used.but it does'nt work for me any help wud be appreciated Link to comment https://forums.phpfreaks.com/topic/47251-date_diff-does-not-work/#findComment-230444 Share on other sites More sharing options...
kenrbnsn Posted April 16, 2007 Share Posted April 16, 2007 The function date_diff() is not a function that comes with PHP. Someone must have written it. Ken Link to comment https://forums.phpfreaks.com/topic/47251-date_diff-does-not-work/#findComment-230447 Share on other sites More sharing options...
Barand Posted April 16, 2007 Share Posted April 16, 2007 There's a MySQL function SELECT DATEDIFF(date1, date2) .... which returns difference in days between 2 dates Link to comment https://forums.phpfreaks.com/topic/47251-date_diff-does-not-work/#findComment-230453 Share on other sites More sharing options...
suzzane2020 Posted April 16, 2007 Author Share Posted April 16, 2007 oops..thnx.. all this while i thought it was an inbuilt function. Link to comment https://forums.phpfreaks.com/topic/47251-date_diff-does-not-work/#findComment-230454 Share on other sites More sharing options...
suzzane2020 Posted April 16, 2007 Author Share Posted April 16, 2007 oh ok..so tht mite be it. coz i was sure i had come across it smewhere. Link to comment https://forums.phpfreaks.com/topic/47251-date_diff-does-not-work/#findComment-230457 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.