diff options
author | Arun Persaud <arun@nubati.net> | 2008-01-06 19:49:04 +0100 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-01-06 19:49:04 +0100 |
commit | a96688595ffc3663a70754a3a194fc3eeefb5405 (patch) | |
tree | 2f57df5302b22fd5cd9f56a2ddd5ce73c90a5302 /index.php | |
parent | 1c41d17d61ec513fe71e52e5a631e60b1a890e0e (diff) | |
download | e-DoKo-a96688595ffc3663a70754a3a194fc3eeefb5405.tar.gz e-DoKo-a96688595ffc3663a70754a3a194fc3eeefb5405.tar.bz2 e-DoKo-a96688595ffc3663a70754a3a194fc3eeefb5405.zip |
NEW FEATURE: show the time a game took at the end of the game
display time in hours together with total points.
Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1885,6 +1885,11 @@ else if(myisset("me")) while( $r = mysql_fetch_array($result,MYSQL_NUM)) echo " ".$r[0]." ".$r[1]."<br />\n"; + $queryresult = mysql_query("SELECT timediff(mod_date,create_date) ". + " FROM Game WHERE id='$gameid'"); + $r = mysql_fetch_array($queryresult,MYSQL_NUM); + echo "<p>This game took ".$r[0]." hours.</p>"; + echo "<div class=\"re\">\n Points Re: <br />\n"; $queryresult = mysql_query("SELECT score FROM Score ". " WHERE game_id=$gameid AND party='re'". |