Forum Moderators: coopster
$sql = mysql_query("SELECT * FROM oblast_metal WHERE ID = '$id'");
while ($row = mysql_fetch_array($sql)) { ?>
<?php
$zajedno=$row['Artist']."- ".$row['Song'];
$id = $_GET['id'];
echo "<font size=3><font color=white>Download </font></font>";
echo "<font size=4><font color=grey>"." ". $zajedno;- How to make this code to link with $row['Link']! Something like:
echo "<a href="$row['Link']>$zajedno</ a>;
Please, help me if anyone knows! Thank You in advance!
}
<?php
$sql = mysql_query("SELECT link FROM oblast_metal WHERE ID = '$id'");
$title = mysql_fetch_row($sql);
?>
<head>
....
<title><?php echo $title[0]; ?></title>
....
</head>
<?php
$username = "root";
$password = "root";
$hostname = "localhost";
$dbhandle = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");
echo "<br>";
$selected = mysql_select_db("spotovi1", $dbhandle) or die("Could not select DB");
$zajedno=$row['Artist']."- ".$row['Song'];
$row['Artist']=$Artist;
$row['Song']=$Song;
$id= $row['id'];
$id = $_GET['id'];
$sql = mysql_query("SELECT * FROM oblast_metal WHERE ID = '$id'");
$title = mysql_fetch_row($sql);