Changeset 287 for quests/user.php


Ignore:
Timestamp:
Jan 30, 2008, 6:59:15 PM (17 years ago)
Author:
maron
Message:

oprava statistic.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/user.php

    r286 r287  
    3434     + IFNULL((SELECT sum(Vote) AS Vote FROM `page_text` WHERE User = ".$_GET['user']." AND Complete =1),0)
    3535     + IFNULL((SELECT sum(Vote) AS Vote FROM `npc_text` WHERE User = ".$_GET['user']." AND Complete =1),0)
    36      ) AS SumVote, (
     36     ) / (
    3737       (SELECT count(Vote) AS Vote FROM `quests` WHERE User = ".$_GET['user']." AND Complete =1)
    3838     + (SELECT count(Vote) AS Vote FROM `page_text` WHERE User = ".$_GET['user']." AND Complete =1)
    3939     + (SELECT count(Vote) AS Vote FROM `npc_text` WHERE User = ".$_GET['user']." AND Complete =1)
    40      ) AS CountText
     40     ) AS Vote
    4141   FROM `user` WHERE ID = ".$_GET['user']));
    4242   
    43         if ($LineUser['CountText'] <> 0)
    44           $Vote = $LineUser['SumVote']/$LineUser['CountText'];
    45         else $Vote = 0;
    46 
    4743    echo 'ID: <b>'.$_GET['user'].'</b><br />';
    4844    echo 'Jméno: <b>'.$LineUser['user'].'</b><br />';
     
    5147    echo 'Posledí IP: <b>'.$LineUser['LastIP'].'</b><br />';
    5248    echo 'Poèet pøelo¾ených: <b>'.$LineUser['NumberTranslate'].'</b><br />';
    53     echo 'Prùmìrná známka: <b>'.$Vote.'</b><br />';
     49    echo 'Prùmìrná známka: <b>'.$LineUser['Vote'].'</b><br />';
    5450    echo 'Email: <b>'.$LineUser['Email'].'</b><br />';
    5551    echo '<br>
Note: See TracChangeset for help on using the changeset viewer.