Page hyperlinking using custom php files
-
I been trying to figure this out for the past week and about to go crazy lol. I have two custom php files I created using custom templates. The first file called player_stats.php selects a simple table from mysql with hyperlinks to the name column in a table.
echo “<table border=’1′>
while($row = mysql_fetch_array($results)){
$strName = $row[‘name’];
echo “<tr>”;
$strLink = “” . $strName . ““;
echo “<td>” . $row[‘team’] . “</td>”;
echo “<td>” . $strLink . “</td>”;
…..
When a name of the player is clicked it will open up the file player_details.php since the hyperlink above is set to player_details.php?name=” . $row[‘name’]but in this case wordpress doesn’t know player_details.php file because wordpress doesn’t show or use .php extensions when it saves a file name.
How can I get the first file to look at the second file?
I appreciate the help in advance!
The topic ‘Page hyperlinking using custom php files’ is closed to new replies.