Changeset 23 for www


Ignore:
Timestamp:
Jan 17, 2008, 7:49:13 PM (17 years ago)
Author:
george
Message:

Opraveno: Skript pro přepočtení stavu financí.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/finance/prepocet.php

    r6 r23  
    55function RecalculateUsersFinance()
    66{
    7   global $InternetSegmentId, $Tarify, $Sprava;
     7  global $InternetSegmentId, $Tarify, $Sprava, $Database;
    88
    99  $DbResult = $Database->query("SELECT * FROM users WHERE role=0");  // Select network members only
     
    115115
    116116$DbResult = $Database->query("SELECT SUM(money) FROM finance_operations");
    117 $Row3 = DB_Row();
     117$Row3 = $DbResult->fetch_array();
    118118echo("Rozdíl peněz v operacích: ".($Row3[0]-$Row6[0] - $Row4[0])." <br>\n");
    119119
Note: See TracChangeset for help on using the changeset viewer.