conan318 Posted June 22, 2012 Share Posted June 22, 2012 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 More sharing options...
trq Posted June 22, 2012 Share Posted June 22, 2012 Remove the ; from after win() Link to comment https://forums.phpfreaks.com/topic/264606-calling-a-function/#findComment-1356099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.