View Single Post
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 10-23-2010 , 02:38   Re: Convert STEAMID to Steam Community ID
Reply With Quote #257

anyone help me with this? its only returning one link and thats the one thats already in there:

Code:
//convert the steam id
$auth_id = mysql_query("SELECT authid FROM sb_admins WHERE srv_group = 'Rizla Server' OR srv_group = 'Lower Server Admins' OR srv_group = 'Server Admins'");
$community_id *= 2;
$community_id += 76561197960265728;
$community_id += substr($authid, 8, 1); 
$site = "http://steamcommunity.com/profiles/".$community_id ."";


//show the data
 
Print "<table border cellpadding=3>"; while($info = mysql_fetch_array( $data )) 
{ 
Print "<tr>"; Print "<td>".$info['user'] . "</td> "; Print "<td>".$info['authid'] . " </td>"; Print "<td>$site</td></tr>"; } Print "</table>";
im a total php noob, been trying to get this working for a few hours now, looked through countless pages for help

it returns this and only this for every row:
http://steamcommunity.com/profiles/76561197960265736

Last edited by Rizla; 10-23-2010 at 02:41.
Rizla is offline