-
本站唯一客服QQ:4552609
|
||||||
//根据帐号ID判断国家 function empire($index){ $query = mysql_query("Select empire from player.player_index where id= $index "); $rs=mysql_fetch_array($query); if (!$rs){ $empire = "无角色"; }else{ if ($rs[empire] == 0){ $empire = "未创建角色"; }elseif ($rs[empire] == 1){ $empire="<font color=#FF0000>盛唐国</font>"; }elseif ($rs[empire] == 2){ $empire="<font color=#827200>秦皇国</font>"; }elseif ($rs[empire] == 3){ $empire="<font color=#0000FF>汉武国</font>"; }} return $empire; mysql_close();} //根据帐号ID判断国家图片 function empire_img($index){ $query = mysql_query("Select empire from player.player_index where id= $index "); $rs=mysql_fetch_array($query); if (!$rs){ $empire = "无角色"; }else{ if ($rs[empire] == 0){ $empire = "未创建角色"; }elseif ($rs[empire] == 1){ $empire="<img border=0 src=images/red.jpg>"; }elseif ($rs[empire] == 2){ $empire="<img border=0 src=images/yollow.jpg>"; }elseif ($rs[empire] == 3){ $empire="<img border=0 src=images/blue.jpg>"; } } return $empire; mysql_close(); } ? |
||||||
|