Php facebook app help

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

alcapone

Established Member
Impact
0
Hi all i could use some help getting timers to show up from cron jobs here is the out put code

PHP:
<? $timer_item = $appSetting["cron_energy_stemina"]-(time()-$user["last_charge_stemina"]);if($timer_item<=0)echo " More in <span style='color:#ffd004'>".$time.-last_charge_stemina.' sec<span>';else echo " More in <span style='color:#ffd004'>".$timer_item.' sec<span>'; ?>

and here is the functions for it

PHP:
//Cron Job for Stemina
function CronJobForStemina()
{
    $appSetting = ApplicationSetting();
    $time = time();
    db_execute("Update user set stemina=stemina+1, last_charge_stemina=".$time." where stemina<stemina_max and (".$time."-last_charge_stemina)>=".$appSetting["cron_energy_stemina"]);
}

the cron is set at 5 mins i would like for it to say show more in blanK mins and blank sec

Im lost i cant figure this out thanks for help in advance

Thanks
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back