Parse error: parse error, unexpected $ in /home/content/y/a/n/yankeefaninkc/html/bio.php on line 96.
And can someone tell me if there is anythign wrong with my get id part of my script.
Code: Select all
<?php echo "<body bgcolor=\"black\" text=\"black\" link=\"red\" vlink=\"red\">"; ?>
<?php
// Connects to your Database
$link = mysql_connect("?", "?", "?") or die(mysql_error());
mysql_select_db("?",$link) or die(mysql_error());
if (!mysql_select_db("?", $link)) {
echo 'Could not select database';
exit;
{
if (isset($_GET['id']))
//Define the query
$query = "SELECT * FROM bios WHERE id='".$_GET['id']."'";
if ($r = mysql_query ($query)){ // Run the query.
print '<table border=0 cellspacing="0" cellpadding=3 width=100%>';
print '<tr>';
print '<td background="images/bg_bar4.gif" height=35><font color=white> Biography</font></td>';
print '</tr>';
print '</table>';
print '<img src=images/spacer.gif><br>';
print '<table border=0 cellpadding=0 cellspacing=0 width=100%>';
print '<tr>';
print '<td width=450><img src=images/' . $row['wrestlername'] . '></td>';
print '<td valign=top>';
print '<table border=0 cellspacing="0" cellpadding=3 width=100%>';
print '<tr>';
print '<td background="images/bg_bar3.gif" height=35><font class=headline> Overall Match Record</font></td>';
print '</tr>';
print '<tr>';
print '<td bg color=#EEEEEE>';
print '<table border=0 align=center>';
print '<tr>';
print '<td align=center><font class=big color=white>' . $row['wins'] . '</font></td>';
print '<td align=center><font class=big color=white>-</font></td>';
print '<td align=center><font class=big color=white>' . $row['losses'] . '</font></td>';
print '<td align=center><font class=big color=white>-</font></td>';
print '<td align=center><font class=big color=white>' . $row['draws'] . '</font></td>';
print '<tr>';
print '<td align=center><font class=normal color=white>WINS</font></td>';
print '<td align=center></td>';
print '<td align=center><font class=normal color=white>LOSSES</font></td>';
print '<td align=center></td>';
print '<td align=center><font class=normal color=white>DRAWS</font></td>';
print '</tr>';
print '</table>';
print '</td>';
print '</tr>';
print '</table>';
print '<table border=0 cellspacing="0" cellpadding=3 width=100%>';
print '<tr>';
print '<td></td>';
print '</tr>';
print '<tr>';
print '<td><img src="images/spacer.gif" height="5"><img src="images/spacer.gif" height="5"><img src="images/spacer.gif" height="5"></td>';
print '</tr>';
print '</table>';
print '</td>';
print '</tr>';
print '</table>';
print '<img src=images/spacer.gif><br>';
print '<table border=0 cellspacing="0" cellpadding=3 width=100%>';
print '<tr>';
print '<td background="images/bg_bar3.gif" height=35><font class=headline> Wrestler Information</font></td>';
print '</tr>';
print '<tr>';
print '<td bgcolor="#EEEEEE" width=100%>';
print '<table border=0 cellpadding=0 cellspacing=0 width=100%>';
print '<tr>';
print '<td width=100%><img src=images/bio/alexgrey.jpg align=right><font class=normal><b><font color=666666>Name:</font></b><br>' . $row['wrestlername'] . '<br><img src=images/spacer.gif><br><b><font color=666666>Nicknames:</font></b><br>' . $row['nicknames'] . '<br><img src=images/spacer.gif><br><b><font color=666666>Birth Date:</font></b><br>' . $row['birthdate'] . '<br><img src=images/spacer.gif><br><b><font color=666666>Height:</font></b><br>' . $row['height'] . '<br><img src=images/spacer.gif><br><b><font color=666666>Weight:</font></b><br>' . $row['weight'] . ' pounds<br><img src=images/spacer.gif><br><b><font color=666666>Hometown:</font></b><br>' . $row['hometown'] . '<br><img src=images/spacer.gif><br><b><font color=666666>Nationality:</font></b><br>' . $row['nationality'] . '<br><img src=images/spacer.gif><br><b><font color=666666>Ethnicity:</font></b><br>' . $row['ethnicity'] . '<br><img src=images/spacer.gif><br><b><font color=666666>Favorite Quote:</font></b><br>' . $row['quotes'] . '<br><img src=images/spacer.gif><br><b><font color=666666>Personality:</font></b><br' . $row['personality'] . '<br><img src=images/spacer.gif><br><b><font color=666666>Theme Music:</font></b><br>' . $row['thememusic'] . '</font></td>';
print '</tr>';
print '</table>';
print '</td>';
print '</tr>';
print '</table>';
print '<img src=images/spacer.gif><br>';
print '<table border=0 cellspacing="0" cellpadding=3 width=100%>';
print '<tr>';
print '<td background="images/bg_bar3.gif" height=35><font class=headline> Biography</font></td>';
print '</tr>';
print '<tr>';
print '<td bgcolor="#EEEEEE"><img src=images/body/alexgrey.jpg hspace="5" vspace="5" border="0" width="300" height="625" align=right><div style="text-align:justify">Non' . $row['biography'] . '</div></td>';
print '</tr>';
print '</table>';
print '</td>';
print '</tr>';
print '</table>';
print '<img src="images/spacer.gif" height="8">';
}
}
?>