Changeset 287 for quests/user.php
- Timestamp:
- Jan 30, 2008, 6:59:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/user.php
r286 r287 34 34 + IFNULL((SELECT sum(Vote) AS Vote FROM `page_text` WHERE User = ".$_GET['user']." AND Complete =1),0) 35 35 + IFNULL((SELECT sum(Vote) AS Vote FROM `npc_text` WHERE User = ".$_GET['user']." AND Complete =1),0) 36 ) AS SumVote,(36 ) / ( 37 37 (SELECT count(Vote) AS Vote FROM `quests` WHERE User = ".$_GET['user']." AND Complete =1) 38 38 + (SELECT count(Vote) AS Vote FROM `page_text` WHERE User = ".$_GET['user']." AND Complete =1) 39 39 + (SELECT count(Vote) AS Vote FROM `npc_text` WHERE User = ".$_GET['user']." AND Complete =1) 40 ) AS CountText40 ) AS Vote 41 41 FROM `user` WHERE ID = ".$_GET['user'])); 42 42 43 if ($LineUser['CountText'] <> 0)44 $Vote = $LineUser['SumVote']/$LineUser['CountText'];45 else $Vote = 0;46 47 43 echo 'ID: <b>'.$_GET['user'].'</b><br />'; 48 44 echo 'Jméno: <b>'.$LineUser['user'].'</b><br />'; … … 51 47 echo 'Posledí IP: <b>'.$LineUser['LastIP'].'</b><br />'; 52 48 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 />'; 54 50 echo 'Email: <b>'.$LineUser['Email'].'</b><br />'; 55 51 echo '<br>
Note:
See TracChangeset
for help on using the changeset viewer.