Hi, I am trying to make a link based on info stored in MySQL, the code I have got so far is
if (isset($_POST['search_now'])) {
$result = mysql_query("SELECT * FROM bands WHERE BandName LIKE '%$BandName%'");
$page = "<a href=\"http://www.website.com/$row['PageName']\">$row['BandName']</a>";
while($row = mysql_fetch_array($result)) { echo 'Band Name: '; echo $row['BandName'] ." " . $row['Genre']; echo $page; echo "<br />"; }
}
But I am getting: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ... on line 14
I have never seen this error before, can anyone help?
Thanks