Jump to content

[SOLVED] Ohh yaay, date questions.


Zepo.

Recommended Posts

Would this work?

 

$canchallenge=date("YmdHis",time()-60*60*$config[wartime]);
if(mysql_num_rows(mysql_query("SELECT reported FROM matchdb WHERE wid='{$_COOKIE['user']}' AND lid='$login[cid]' AND reported > '$canchallenge' 
OR wid='$login[cid]' AND lid='{$_COOKIE['user']}' AND reported > '$canchallenge'"))){
error("You may only war a clan every $config[wartime] hours.");
}

Link to comment
https://forums.phpfreaks.com/topic/80928-solved-ohh-yaay-date-questions/
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.