Page 1 of 1

A Quick Question about and Error [SOLVED]

Posted: Thu Jun 22, 2006 2:59 pm
by tecktalkcm0391
I keep getting:
Parse error: syntax error, unexpected '=' in /home/users-map.php on line 33
With:

Code: Select all

$location = '';
if(isset($loc_info['CITY'])){
			$location. = ''.$loc_info['CITY'].', ';
		}
Anyone can tell me why?

Posted: Thu Jun 22, 2006 3:04 pm
by Oren
Remove the space between the '.' to the '=' :wink:

Posted: Thu Jun 22, 2006 3:18 pm
by tecktalkcm0391
Thanks!

Posted: Thu Jun 22, 2006 3:26 pm
by RobertGonzalez
Just cleaning it up a bit...

Code: Select all

<?php
$location = '';
if(isset($loc_info['CITY'])){
    $location = $loc_info['CITY'] . ', ';
}
?>