RE: [PHP] Spacing between $row["City"],$row["State"]

2001-03-27 Thread Matt Williams
> Is there a way to get spacing between > $row["City"],$row["State"] in the html output? > I've tried echo "$row["City"], nbsp; $row["State"]"; > and a bunch of other things and get Parse error: parse > error, expecting `STRING' or `NUM_STRING' or `'$'' . Try echo $row["City"]." ".$row["State"

Re: [PHP] Spacing between $row["City"],$row["State"]

2001-03-27 Thread Philip Olson
Hi Mike, Try this little test : 'Seattle', 'state' => 'Washington'); // Can do in PHP4 : print "{$row['city']} {$row['state']}"; // Can do anytime : print $row['city'] . ' ' . $row['state']; ?> Not sure when "{$array['index']}" came about exactly but iirc it's not