From: Arun Persaud Date: Sun, 6 Jan 2008 18:49:04 +0000 (+0100) Subject: NEW FEATURE: show the time a game took at the end of the game X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a96688595ffc3663a70754a3a194fc3eeefb5405;p=e-DoKo.git 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 --- diff --git a/index.php b/index.php index bacb356..6807fa6 100644 --- a/index.php +++ b/index.php @@ -1885,6 +1885,11 @@ else if(myisset("me")) while( $r = mysql_fetch_array($result,MYSQL_NUM)) echo " ".$r[0]." ".$r[1]."
\n"; + $queryresult = mysql_query("SELECT timediff(mod_date,create_date) ". + " FROM Game WHERE id='$gameid'"); + $r = mysql_fetch_array($queryresult,MYSQL_NUM); + echo "

This game took ".$r[0]." hours.

"; + echo "
\n Points Re:
\n"; $queryresult = mysql_query("SELECT score FROM Score ". " WHERE game_id=$gameid AND party='re'".