HTML & PHP Information Table -


so i'm hosting servers , trying make table displaying information server name players etc have script displays suck @ css, i'm trying little in website http://echelon.kthx.at/pubbans.php

    <?php  include ("bc2conn.php");  // opens connection gameserver $bc2conn = new bc2conn("31.185.143.136", 48888);  if (!$bc2conn->isconnected()) {     echo "connection not established. " .     "to debug, set '-d' 3rd parameter new connection.<br />" .     "<br />" .     "example: \$bc2conn = new bc2conn(\"127.0.0.1\", 48888, \"-d\");";      return 0; // stop executing script }  // secure login // $bc2conn->loginsecure("password");  // unsecure login (not salted)  // random serverinformation echo "servername: " . $bc2conn->getservername() . "<br />"; echo "players: " . $bc2conn->getcurrentplayers() . "/" . $bc2conn->getmaxplayers() . "<br />"; echo "playmode: " . $bc2conn->getcurrentplaymodename() . "<br />"; echo "current map: " . $bc2conn->getcurrentmapname() . "<br /><br /><br /><u>players:</u><br /><br />";  // playerlist $playernames = $bc2conn->getplayerlistnames(); foreach ($playernames $key => $content) {     if ($bc2conn->getplayerclantag($content) != "") {         echo "[" . $bc2conn->getplayerclantag($content) . "]";     }     echo " " . $bc2conn->getplayername($content) . " - kills: ";     echo $bc2conn->getplayerkills($content) . " | deaths: ";     echo $bc2conn->getplayerdeaths($content) . " | score: ";     echo $bc2conn->getplayerscore($content) . "<br />"; }   // logout $bc2conn->logout(); ?> 


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -