guys im helping someone with his php code. but i cant seem to figure out whats wrong with this code:
the system is fine in LOCALHOST. but when i uploaded it to a free hosting (000webhost.com) it gives me this error:
"Fatal error: Call to undefined method DateTime::add() in /home/a5927002/public_html/thesis2/lib/functions.php on line 273"
so i look for a function or class DateTime, i cant find it anywhere. but its working fine in localhost. any ideas guys?