X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fstats.php;h=095296edcd919223a5d340fc646a6a06c8a66d54;hp=cff6a84fb3eb4b22ec020f7a52a5a40952d36c54;hb=567f0d615194566c629887a315cd864bbe84fde9;hpb=02b7328ec7f2c4d9eb7862553da000f386830017 diff --git a/include/stats.php b/include/stats.php index cff6a84..095296e 100644 --- a/include/stats.php +++ b/include/stats.php @@ -12,8 +12,6 @@ $myid = DB_get_userid('email',$email); if(!$myid) return; -output_status(); - $PREF = DB_get_PREF($myid); DB_update_user_timestamp($myid); @@ -106,15 +104,16 @@ if( !$content = getCache("cache/stats.html",60*60*24) ) select g1.id, g2.id from game g1 left join game g2 on g1.randomnumbers=g2.randomnumbers where g1.id'silent' AND Game.status='gameover' ". + " WHERE type='solo' AND Game.status='gameover' ". " GROUP BY user_id ". " ORDER BY c DESC;"); array_unshift($result,array("Name","Number of solos","Solos/game")); @@ -229,6 +228,9 @@ if( !$content = getCache("cache/stats.html",60*60*24) ) how often is the last trick a non-trump trick */ + /* needs this so that all tables are within the div and don't float around */ + echo "

 

\n"; + echo "\n"; /* end output */ /* write file to cache */