$timediff = $dateatota - $inittime; $days=intval($timediff/86400);$remaining=$timediff%86400;
I am trying to add the attached code to a block in D7.
It isn't working at all. I get the following error:
Parse error: syntax error, unexpected '>' in /home/username/public_html/drupal/modules/php/php.module(80) : eval()'d code on line 1
I have php filtering module enabled. I have the input type on the block set as 'PHP Code'.
This php seems to be working fine on it's own, it does not work when embedded in Drupal. I can get it to work in an IFrame in a block, but I'd sooner not do that.
Any idea on how I can fix it? I haver very little PHP knowledge.