有谁知道如何从 php 变量中创建链接。我希望我的 php 变量 $LeagueLink 成为带有 mysql 查询结果名称的leaguehome 链接。如果可以的话请帮忙....
$result = mysql_query("SELECT League FROM League_Info WHERE User_ID = '$id'");
$result2 = mysql_fetch_array($result);
$result3 = $result2['League'];
$LeagueLink = '<a href="home.com/test.php"><?=$result3?></a>';