Thanks - could you elaborate on that please....what would I have to change from what I have now?
<?php
$conn = @mysql_connect( "$dbHostname", "$dbUsername", "$dbPassword" )
or die( "Could not connect" );
$rs = @mysql_select_db( "fourmarks1", $conn )
or die( "Could not select database" );
$sql = "select * from players order by name";
$rs = mysql_query( $sql, $conn )
or die( "Could not execute query" );
$list = "<table style=\"width:520px\" cellpadding=\"2\">";
$list .= "<tr><th>Name</th>";
$list .= "<th>Pos.</th>";
$list .= "<th><img border=\"0\" src=\"Images/app1.jpg\" alt=\"Apps\">(L)</th>";
$list .= "<th><img border=\"0\" src=\"Images/app1.jpg\" alt=\"Apps\">(C)</th>";
$list .= "<th><img border=\"0\" src=\"Images/app1.jpg\" alt=\"Apps\">(=)</th>";
$list .= "<th><img border=\"0\" src=\"Images/goals.gif\" alt=\"Goals\">(L)</th>";
$list .= "<th><img border=\"0\" src=\"Images/goals.gif\" alt=\"Goals\">(C)</th>";
$list .= "<th><img border=\"0\" src=\"Images/goals.gif\" alt=\"Goals\">(=)</th>";
$list .= "<th><img border=\"0\" src=\"Images/yellow.gif\" alt=\"Yellow\"></th>";
$list .= "<th><img border=\"0\" src=\"Images/red.gif\" alt=\"Red\"></th>";
while( $row = mysql_fetch_array( $rs ) )
{
$list .= "<tr>";
$list .= "<td>".$row["name"]."</td>";
$list .= "<td>".$row["position"]."</td>";
$list .= "<td>".$row["1st_app_l"]."/".$row["res_app_l"]."</td>";
$list .= "<td>".$row["1st_app_c"]."/".$row["res_app_c"]."</td>";
$list .= "<td>".$row["1st_app_t"]."/".$row["res_app_t"]."</td>";
$list .= "<td>".$row["1st_goals_l"]."/".$row["res_goals_l"]."</td>";
$list .= "<td>".$row["1st_goals_c"]."/".$row["res_goals_c"]."</td>";
$list .= "<td>".$row["1st_goals_t"]."/".$row["res_goals_t"]."</td>";
$list .= "<td>".$row["1st_yellow"]."/".$row["res_yellow"]."</td>";
$list .= "<td>".$row["1st_red"]."/".$row["res_red"]."</td>";
$list .= "</tr>";
}
$list .= "</table>";
echo( $list );
?>
Remember its the Name values that I want to have as a hyperlink.
Cheers 😉