OK.. now I'm getting really annoying.. :o))
If it was the composer I needed a link to...
Then I would do like this..
$comp=$row['Composer'];
<?echo "<a href=\"Composer.php?Composer=$comp\">$comp</a>";
and then
if($GET['Composer']){
$comp=$GET['Composer'];
$result = mysql_query("select * from Music WHERE Composer='$comp'");
But what if...
I have 2 diffent composer fields.. Composer1 and Composer2..
This is if a song is written by 2 different composers..
But I still need to be able to click on both the first and the second composer seperatelly..
Is it then:
$comp1=$row['Composer1'];
$comp2=$row['Composer2'];
<?echo "<a href=\"Composer.php?Composer1=$comp1\">$comp1</a>";
echo "<a href=\"Composer.php?Composer2=$comp2\">$comp2</a>";
And then
if($GET['Composer1']){
$comp1=$GET['Composer1'];
$result = mysql_query("select * from Music WHERE Composer1='$comp1'");
if($GET['Composer2']){
$comp2=$GET['Composer2'];
$result = mysql_query("select * from Music WHERE Composer2='$comp2'");
Will it then automaticly go to the next IF line if it's the second composer I have clicked.. ???