I am at my wits end ! Dont know what's wrong with the following code. It is always saying "Parse error: syntax error, unexpected $end in C:\Program Files\EasyPHP-\www\addallbuy.php on line 51"



$Date = Date("Y-m-d");
$prop="Wanted 1 BHK/2BHK and other properties";
$Add="Please register and add property";

$query = 'SELECT city FROM cities';

$result =mysql_query($query);

while ($info = mysql_fetch_array($result))


	{echo $info['city'];echo"<br>";}


	$sql="INSERT INTO clientdata (Date,Agent_Ind,username,Title,Firstname,Lastname,Age,phone,Email,propheading,Transaction, PropertyType,Area, Units,Price, Location, AdditionalData)


	if ($result)

	{echo 'Updated';}



The closing double-quote for your MySQL query on line 39 is actually the wrong character.
It should be a " and you have a , so the string is never closed and eats the rest of your code.