I have the following code I am using to get song information out of a database
<?
include('inc/config.php) ?>
<b>Last Song played, Author, and When Played</b>
<?
$result = mysql_query(\"SELECT * FROM `historylist` \");
echo \"<table>\";
while ($row=mysql_fetch_assoc($result)) {
$date_played=$row[\'date_played\'];
$title=$row[\'title\'];
$artist=$row[\'artist\'];
echo \"
<tr><td>
$date_played - $name</td>
</tr>\";
}
echo \"<table>\";
?>
when I run the script I get the error
Parse error: parse error, unexpected $ in /home/your4rum/public_html/song/song.php on line 27
the problem for me is that line 27 is
?>
what should I do to fix that