|
Lord Winner:
( U$ x B' v+ j8 s5 \. ~. `) v: y9 D, o# P5 _4 k( S, Y
; c9 Z$ j7 x w3 j) f; i9 X
PHP Code:
, R: O! N: H& |8 w6 `& a9 T% D2 N<?php
. J* z Z$ s, F6 Y& Lmssql_select_db ( "CHARACTER_01_DBF" ); 4 A$ A* n3 H2 R
$lord = mssql_fetch_array ( mssql_query ( "SELECT TOP 1 m_szName FROM tblLord a LEFT JOIN CHARACTER_TBL b ON RIGHT('0000000' + CONVERT(VARCHAR(7),a.idLord),7)= b.m_idPlayer ORDER BY s_date DESC" ));
: U! m+ K- j/ R2 rif ( $lord [ 'm_szName' ] != "" ) / K2 n% x5 J3 ?8 `& l" k- i
echo $lord ; 1 A ]/ y: J& y$ @4 W
else % Q" D/ ?+ A" Z& e
echo "-" ;
9 u4 m- N% x5 _' o) L% a?>
/ m, ]% q. g- k7 LMVP:8 T% `4 C/ K& j5 g- o
: A* K3 W6 w) k z
: D) z, z1 W7 J _' d- l
. g, }8 q. O F: e$ a& S' DPHP Code:
% T# C" e( q! e/ E2 m<?php 8 d1 ^3 f& j9 N5 R8 N
$mvp = mssql_fetch_array ( mssql_query ( "SELECT TOP 1 m_szName FROM tblCombatJoinPlayer JP LEFT JOIN tblCombatInfo CI ON JP.CombatID = CI.CombatID LEFT JOIN CHARACTER_TBL C ON JP.PlayerID = C.m_idPlayer WHERE CI.[Status] = '30' ORDER BY JP.CombatID DESC, Point DESC" ));
" L; l" g% ~5 Y7 H$ I+ gif ( $mvp [ 'm_szName' ] != "" )
0 v# u! `( U" z: n& ^echo $mvp [ m_szName ];
' t# e! M, X: q+ b- ]7 Z& @3 ]2 Selse
7 N! V: x/ v1 Y+ K) k# Z+ Zecho "-" ; . U/ ]* m/ n( O! C( }/ U
?>
* a6 _' r% J- ^Guild Winner:
3 n: S% [5 O1 S4 U7 U/ ?' p z E; ?5 o7 [! a
. p0 _6 N* F/ c; d; R+ ]. j$ R- ]/ |) Q+ g: P0 f8 \/ o+ x& z
PHP Code:' q' l, {* I* m o6 }7 W0 L
<?php 4 K- P1 ^+ V3 v; V
$crown = mssql_fetch_array ( mssql_query ( "SELECT TOP 1 m_szGuild FROM tblCombatJoinGuild JG LEFT JOIN tblCombatInfo CI ON JG.CombatID = CI.CombatID LEFT JOIN GUILD_TBL G ON JG.GuildID = G.m_idGuild WHERE CI.[Status] = '30' ORDER BY JG.CombatID DESC, Point DESC" )); ) q' \% I. ]6 S+ _
if ( $crown [ 'm_szGuild' ] != "" )
1 U: g' [) _, Q" M5 A) Techo $crown [ m_szGuild ]; , ^$ ^$ j4 X" t' f( i2 c
else
2 g( f. }( P$ Pecho "-" ;
6 N B) G z/ q: ?3 T; g?>
, B8 X7 J& T$ w7 ?' cDon't forget to like it.. Of course if it helps...
8 Y& R7 q- H4 ^- N; F" @& z) o7 O/ g: x- w
|
|