Jump to content

calling a function


conan318

Recommended Posts

basicly i have a timer counting down when timer reaches 0 i need to call a function to update my database.

is it possible to call a function if $difference < 0.

Parse error: syntax error, unexpected ';'

 

$timer_html = '<span style="position:absolute;top:110px;right:0px;padding:2px;">Time Left %s</span>';
  printf($timer_html, ($difference < 0 ? win(); : ( floor($difference / 3600) . ':' . floor(($difference % 3600) / 60) . ':' . ($difference % 60))));

Link to comment
https://forums.phpfreaks.com/topic/264606-calling-a-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.