Here is the error:
Call to undefined function get_query_var()
Here is the code I'm using:
<?php
$playerName = get_query_var('the_title');
var_dump($playerName);
$con = mysql_connect("localhost","jwrbloom_","redcoach");
mysql_select_db("jwrbloom_wpspselect", $con);
$query = 'SELECT * FROM team2011 ORDER BY uniform ASC';
$results = mysql_query($query);
while($line = mysql_fetch_assoc($results)) {
if ($playerName == $line['nameFirst'].'-'.$line['nameLast']) {
echo '<div>' . $line['nameFirst'].' '.$line['nameLast'] . '</div>';
}
}
?>