Thanks for your response I tried that and I get this error
Parse error: syntax error, unexpected '}' in /home/mesquit1/public_html/local/browse.php on line 21
so I remove it and I keep getting an error for each } so I remove the last three } then I get this error.
Parse error: syntax error, unexpected $end in /home/mesquit1/public_html/local/browse.php on line 122
So then I added this to the end of the code thinking it is not closed properly like this
<?php
}
?>
and the error is this:
Parse error: syntax error, unexpected $end in /home/mesquit1/public_html/local/browse.php on line 125
Here is the code for the entire file.
Is their something I left out or missing some where?
<?php
include ('db_connect.php');
$address = array();
$city = array();
$state = array();
$postal = array();
$country = array();
$id = mysql_real_escape_string($_GET['id']);
if (isset($id)) {
$sql = "SELECT * FROM users";
if($result = mysql_query($sql)) {
while ($row = mysql_fetch_array ($result)) {
$address[$i] = $row["address"];
$city[$i] = $row["city"];
$state[$i] = $row["state"];
$postal[$i] = $row["postal"];
$country[$i] = $row["country"];
++$i
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Mesquite Texas Country Christmas" />
<meta name="keywords" content="Mesquite, Texas, Country Christmas" />
<meta name="author" content="NA" />
<link rel="stylesheet" type="text/css" href="/stylesheet.css" media="screen" title="FBC" />
<script type="text/javascript" src="drop_down.js"></script>
<title>A Mesquite Country Christmas</title>
</head>
<body>
<div id="wrap">
<a href="/index.html">
<img id="frontphoto" src="/images/header.png" width="760" height="237" alt="Mesquite Country Christmas" border="0"></a>
<div id="menu">
<h2 class="hide">Menu:</h2>
<ul id="avmenu">
<li><a href="/index.html">Home</a></li>
<li><a href="/christmasstory.html">The Christmas Story</a></li>
<li><a href="/directions.html">Directions</a></li>
<li><a href="#">Information</a><ul>
<li><a href="/information.html">Display Facts & Info</a></li>
<li><a href="/faq.html">FAQ</a></li>
<li><a href="/playlist.html">2008 Playlist</a></li>
<li><a href="#">Christmas History</a></li>
</ul></li>
<li><a href="#">Photos</a>
<ul>
<li><a href="/2007photos.html">2007</a></li>
</ul></li>
<li><a href="#">Videos</a>
<ul>
<li><a href="/2007videos.html">2007</a></li>
</ul></li>
<li><a href="/guestbook.php">Guestbook</a></li>
<li><a href="/webcam.html">Web Cam</a></li>
<li><a href="/webradio.html">Internet Radio</a></li>
<li><a href="http://www.noradsanta.org/" TARGET="_blank">Track Santa</a></li>
<li><a href="/projects.html">Projects & How Tos</a></li>
<li><a href="/links.html">Links</a></li>
<li><a href="/contact_us.html">Contact Us</a></li>
</ul>
<center><a href="http://www.toysfortots.org/" TARGET="_blank"><img src="/images/toys_for_tots.jpg" border="0" width="110" height="153" vspace="10"></a></center>
<center><a href="http://christmas.bronners.com/2007/house/534.html"><img src="http://christmas.bronners.com/voteforme/vote.jpg" border="0" width="110" height="153" alt="christmas decorations" vspace="10"></a></center>
</div>
<div id="content">
<div class="fadebox">
<h2>Mesquite Christmas Display Finder</h2>
<hr />
<p> Do you drive around aimlessly looking for Christmas lights every year? We are here to help make that tradition better by allowing you to search for local displays in Mesquite and get directions to them. And if you have a display of your own, you can add it to our database for others to find and enjoy!</p>
<p><span class="title">Current Displays In Mesquite</span><br /><table style="border-top: 1px solid rgb(51, 102, 51);" border="0" cellpadding="4" cellspacing="0" width="100%"><tbody><tr><td class="bg2" width="110">IMAGE</td><td class="bg2"><? echo $row['address']; ?><br><? echo $row['city']. "," . $row['state']. " " . $row['postal']; ?><br><? echo $row['country']; ?></td><td class="bg2" style="vertical-align: middle;">> <a href="displays.php?id=<?php echo $row['id']; ?>"><b>Learn more about Display</b></a><br><br>> <a href="http://www.mapquest.com/maps/map.adp?searchtype=address&formtype=search&countryid=US&addtohistory=&country=US&address=<? echo $row['address']; ?>&city=<? echo $row['city']; ?>&zipcode=<? echo $row['postal']; ?>&historyid=&submit=Get+Map" target="_NEW"><b>Get Directions</b></a><br /><br /></td></tr>
<tr><td class="bg1" width="110">IMAGE</td><td class="bg1"><? echo $row['address']; ?><br><? echo $row['city']. "," . $row['state']. " " . $row['postal']; ?><br><? echo $row['country']; ?></td><td class="bg1" style="vertical-align: middle;">> <a href="displays.php?id=<?php echo $row['id']; ?>"><b>Learn more about Display</b></a><br><br>> <a href="http://www.mapquest.com/maps/map.adp?searchtype=address&formtype=search&countryid=US&addtohistory=&country=US&address=<? echo $row['address']; ?>&city=<? echo $row['city']; ?>&zipcode=<? echo $row['postal']; ?>&historyid=&submit=Get+Map" target="_NEW"><b>Get Directions</b></a><br /><br /></td></tr></tbody></table></p>
</div>
</div>
</div>
<div id="footer">
© 2007 Mesquite Country Christmas
<br />
<br />
<script type="text/javascript"><!--
google_ad_client = "pub-8048181801684156";
//468x60, created 1/8/08
google_ad_slot = "0360766123";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>
</body>
</html>
<?php
}
?>