Multiple address google map???

Hi guys,

Thanx in Advance

For my application tried multiple address google map But Map is coming blank.

We are using PHP5.0 ,YII 6.xxx

We have used method from this URL: http://arturito.net/...p-and-geocoder/

STEPS are as follows:

1-We have adresses in table tbl_advertiser(id, display_name , address_1 , address_2 , email ,postcode ,city).

From tbl_advertiser we fetched the address to make xml structure for address.It is coming correctly in a view file


<?php

ob_start();

$connection=Yii::app()->db;

$mapsql="SELECT * FROM tbl_advertiser WHERE idtbl_advertiser=15";

$command=$connection->createCommand($mapsql);

$row=$command->queryALL();

//print_r($row);exit;

$doc = new DomDocument('1.0');

$name="Rohit";

$address=array();

$address[0]='14 Mercer St, Seattle, WA';

$address[1]='The Melting Pot,14 Mercer 14 Mercer St, Seattle, WA' ;

//$address_1='14 Mercer St, Seattle, WA';

//$address_2='Piroshky Piroshky, 1908 Pike pl, Seattle, WA';

$node = $doc->createElement("markers");

$parnode = $doc->appendChild($node);

header("Content-type: text/xml");

$i=0;

while($i<2)

{

$node = $doc->createElement("marker");

$newnode = $parnode->appendChild($node);

$newnode->setAttribute("name", $name);

$newnode->setAttribute("address",$address[$i]);

$i++;

}

print $doc->saveXML();

?>

[html]<markers>

&lt;marker name=&quot;Rohit&quot; address=&quot;14 Mercer St, Seattle, WA&quot;/&gt;


&lt;marker name=&quot;Rohit&quot; address=&quot;The Melting Pot,14 Mercer 14 Mercer St, Seattle, WA&quot;/&gt;

</markers>[/html]

In another view file glmap.php we are displaying map using java script given in URL:

http://arturito.net/...p-and-geocoder/

We have used right Google key but map is coming empty with only Zoom buttons

We tried YII Multi- plot extension also.but we have both address in one row not as two records ,so extension not working as it reqiures multiple rows for address.

Please help ASAP Thanx again.