Hi, i've been trying to use your SDK to display my team members online status & what server they're on. Now i'm not exactly very familiar with PHP, i can look at it and try to pick out bits of code that do certian things, so i got a little help from a friend that knows a little more than me, but now we're both stuck
So, this is what i have so far;
memberGreen.php
<?php
php
// Function for converting name to Green if online
function TeamPlayerOnline ($varDisplayName, $varPlayerName)
{
require_once("/var/www/html/lfssdk/lfsworldsdk.php");
$SDK2 = new LFSWorldSDK('IDKREMOVED');
$varRacerInfo = $SDK2->get_pst($varPlayerName);
$varPlayerServer = $varRacerInfo['hostname'];
switch ($varRacerInfo['online']) {
case 0:
echo $varDisplayName;
break;
case 1:
echo "<span title='" . $varPlayerServer . "'><strong><font color='#009900'>" . $varDisplayName .
"</font></strong></span>";
break;
case 2:
echo "<span title='" . $varPlayerServer . "'><strong><font color='#009900'>" . $varDisplayName .
"</font></strong></span>";
break;
case 3:
echo "<span title='" . $varPlayerServer . "'><strong><font color='#009900'>" . $varDisplayName .
"</font></strong></span>";
break;
}
}
?>
And to use this on the web i use the following;
<?php
include("/var/www/html/lfssdk/memberGreen.php");
TeamPlayerOnline("audimasta", "audimasta");
TeamPlayerOnline("GFresh", "GFresh");
?>
The problem with this is, that it displays both me and audimasta on the same line (I have tried numerous linebreak codes but i keep getting parse errors), and also it only works for one online member at a time. ie, if i'm online my name go's green, but if audimasta comes online while i am still online, his name doesn't go green.
There's a fair chance i have done nothing right here, but i tried my hardest to do it without asking for help, i've been trying for weeks

. So could some kind soul please point me in the right direction please.
Thanks.