ok
the relevant bits of code are
album.php
while($info2 = mysql_fetch_array( $sql ))
{
echo "<li><span class=\"black\">";
echo "<a href=\"test.php?id=".urlencode($info2[songname])."\">".$info2['songname']."</a> ";
echo "</span></li>";
}
?>
and then
test.php
$sql2 = mysql_query("SELECT * FROM song where songname='$id'");
while($info3 = mysql_fetch_array( $sql2 )) {
echo "<div class=\"boxcontent\">";
echo "<h1>".$info3[songname]."</h1>";
echo "<br/>";
echo nl2br($info3[lyrics]);
}
?>
I am a complete novice, and heavily struggling, so thanks for replying!
One of the songname records is "Couldn't Hurt Me", and I am having a problem with the ' in that. No problems with brackets or anything.