diff options
author | Arun Persaud <arun@nubati.net> | 2007-12-07 16:52:48 +0100 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2007-12-07 16:52:48 +0100 |
commit | 6bbeb84075b302b51bed0e2d568c393363779041 (patch) | |
tree | 00ac166039318debb9f95f65c22a1c586f83fde6 /index.php | |
parent | 72815ec89838ce9f17aa51224471696c52edf748 (diff) | |
download | e-DoKo-6bbeb84075b302b51bed0e2d568c393363779041.tar.gz e-DoKo-6bbeb84075b302b51bed0e2d568c393363779041.tar.bz2 e-DoKo-6bbeb84075b302b51bed0e2d568c393363779041.zip |
NEW FEATURE: list game points in last email
add a few lines to show the total amount of game points for this game in the email
that gets send out
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -1638,6 +1638,30 @@ else if(myisset("me")) } + /* add score points to email */ + $message .= "\n"; + $Tpoint = 0; + $message .= " Points Re: \n"; + $queryresult = mysql_query("SELECT score FROM Score ". + " WHERE game_id=$gameid AND party='re'". + " "); + while($r = mysql_fetch_array($queryresult,MYSQL_NUM) ) + { + $message .= " ".$r[0]."\n"; + $Tpoint ++; + } + $message .= " Points Contra: \n"; + $queryresult = mysql_query("SELECT score FROM Score ". + " WHERE game_id=$gameid AND party='contra'". + " "); + while($r = mysql_fetch_array($queryresult,MYSQL_NUM) ) + { + $message .= " ".$r[0]."\n"; + $Tpoint --; + } + $message .= " Total Points (from Re points of view): $Tpoint\n"; + $message .= "\n"; + /* send out final email */ $all = array(); |