Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
I am getting this error on line 24:
I am getting this error on line 24:
Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/getgscom/public_html/bf2matchplay/index.php on line 24
Code:
<?
include "config.php";
if (is_numeric($_GET['id']))
{
$id = $_GET['id'];
$result = mysql_query("SELECT platform,description,id,title,release_us,msrp,buylink,developer,publisher,esrb,genre,boxart FROM `gamepage` where id = $id") or die(mysql_error
());
while ($row = mysql_fetch_array($result))
{
$title = $row["title"];
$description = $row["description"];
$cat = $row['platform'];
$release_us = $row['release_us'];
$boxart = $row['boxart'];
$msrp = $row['msrp'];
$buylink = $row['buylink'];
$developer = $row['developer'];
$publisher = $row['publisher'];
$esrb = $row['esrb'];
$genre = $row['genre'];
echo nl2br($title . "\n\n" . $description . "\n\n" . $cat . "\n\n" . $release_us . "\n\n" . $boxart . "\n\n" . $msrp . "\n\n" . $buylink . "\n\n" . $developer . "\n\n" . $publisher . "\n\n" . $esrb . "\n\n" . $genre");
}
[COLOR=Red]LINE 24:[/COLOR] echo nl2br("\n\n<a href='" . $_SERVER['SCRIPT_NAME'] . "'>Back</a>");
} else
{
$result = mysql_query("SELECT id,title FROM `gamepage`") or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
$title = $row["title"];
$id = $row["id"];
echo "<p><a href='index.php?id=$id'>$title</a></p>";
}
}
?>







