I'm a pretty big noob with PHP coding, maybe someone can figure out why this isn't working:
Code:
$steamid = $row->steamId;
$community_id = ((substr($steamid, 10)) * 2) + 76561197960265728 + (substr($steamid, 8, 1));
$community_id = rtrim(sprintf("%f", $community_id), "0");
$community_id = (string)$community_id;
$community_id = str_replace(".", "", $community_id);
echo '<a href="http://steamcommunity.com/profiles/'.$community_id.'">View SteamID Page</a>';
Using my SteamID (STEAM_0:0:16672270) it figures the community ID is 76561197993610272, which it isn't. Where did I go wrong?