Forum Moderators: coopster
Parse error: parse error, unexpected T_VARIABLE in /home/content/d/e/a/dealer1/html/detail.php on line 8
The beginning of the code is below. Line 8 is the one that reads, "$debugD = 0". Can someone please help me with fixing this error message.
<? php
############################################################
# DETAIL.PHP BY DANIEL BOORN
# COPYRIGHT (C) DANIEL BOORN, ALL RIGHTS RESERVED
############################################################
### DEBUG
$debugD = 0;
### END DEBUG
## Fetch database connection
require_once('Connections/myconn.php');
mysql_select_db($database_myconn, $myconn);
## Get Listing ID or set default
$colname_p = "1";//default
if (isset($_GET['id'])) {
$colname_p = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
}
## Fetch property information
$query_p = "SELECT *,Date_Format(pdate,'%M %D %Y') as pdate FROM items WHERE id = ". $colname_p;
## DEBUG
if($debugD) echo 'Property SQL<hr>'.$query_p.'<br><br>';
$p = mysql_query($query_p, $myconn) or die(mysql_error());
$row_p = mysql_fetch_assoc($p);
$totalRows_p = mysql_num_rows($p);
## Update Hits ############
$newhits = ($row_p['hits'] * 1) + 1;
$update = "update items set hits =" . $newhits . " where id = ". $row_p['id'];
mysql_query($update,$myconn) or die(mysql_error());
## Fetch member contact information
$query_m = "select * from members where id = " . $row_p['mid'];
# DEBUG
if($debugD) echo 'Member Sql<hr>'.$query_m.'<br><br>';
$m = mysql_query($query_m,$myconn) or die(mysql_error());
$row_m = mysql_fetch_assoc($m);
## Fetch Header
$siteTitle = $row_p['address'] . ' - ' . $row_p['city'] . ", " . $row_p['state'] . " " . $row_p['zip'] . ' : ';
include('header.php');
?>