Well since I've been trying to figure this out I posted that question on a couple different forums. I finally got my answer a bit before yours. Here's what I had.
<?php
$conn=mysql_connect('localhost', 'amxuser', '******') or die('could not connect'); //establish connection
$query = "SELECT playername, xp, race, skill1, skill2, skill3, skill4 FROM amx.war3users WHERE playername='f1del1ty.oXi' AND race='1'";
$results = @mysql_query($query);
$result = mysql_fetch_array($results); // grabs the row and chops it up into an array where the
//column names from your MySQL table are the array keys
$playername = $result['playername']; // the word inside the brackets is the exact name of your MySQL column
$xp = $result['xp'];
$race = $result['race'];
$skill1 = $result['skill1'];
$skill2 = $result['skill2'];
$skill3 = $result['skill3'];
$skill4 = $result['skill4'];
echo '<table width="30%" border="0"><tr>';
echo '<td align="left"><b>Race:</b> Undead Scourge</td>';
echo '<td align="right"><b>XP:</b> ' .$xp .'</td></tr>';
echo '</table>';
?>
But what I'm trying to do now is allow players to see how much XP they have for each race....and I'm using a form to do so. the website: http://www.teamoxi.ath.cx/xp.php
the code:
<h3><u>Search By Player Name</u></h3>
<form method="post" action="getxp.php">
Player Name (What your last known name was):<br /><input name="name" type="text" size="30" maxlength="40" /><br />
<input type="submit" value="Send" /> <input type="reset" value="Reset" />
<br>
<br>
<br>
OR
<br>
<br>
<h3><u>Search By STEAM ID</u></h3>
<form method="post" action="getxp.php">
Player ID (STEAM_*:***** Format):<br /><input name="id" type="text" size="30" maxlength="40" /><br />
<input type="submit" value="Send" /> <input type="reset" value="Reset" />
What I'm trying to do is make them so that if they use one or the other, they get the same output. And I don't know how to query that kind of stuff...so I'm at a roadblock for now.