Call to an undefined function???
-
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>'; } } ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Call to an undefined function???’ is closed to new replies.