|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
rts5678 Smarty n00b
Joined: 08 Aug 2006 Posts: 2
|
|
Back to top |
|
giggler Smarty n00b
Joined: 08 May 2007 Posts: 4
|
Posted: Sat May 26, 2007 12:03 am Post subject: |
|
|
You first have to connect to DB like usual and set SELECT and all that stuff, then where you have the $map...well this is what I have and it worked for me:
while ($currentrecord < $howmanyrecords)
{
$TITLE = mysql_result($result,$currentrecord,"TITLE");
$IMAGE = mysql_result($result,$currentrecord,"IMAGE");
$OWNER_ADDRESS = mysql_result($result,$currentrecord,"OWNER_ADDRESS");
$OWNER_CITY = mysql_result($result,$currentrecord,"OWNER_CITY");
$OWNER_STATE = mysql_result($result,$currentrecord,"OWNER_STATE");
$OWNER_ZIPCODE = mysql_result($result,$currentrecord,"OWNER_ZIPCODE");
$OWNER_TELEPHONE = mysql_result($result,$currentrecord,"OWNER_TELEPHONE");
$URL = mysql_result($result,$currentrecord,"URL");
// create some map markers
$map->addMarkerByAddress("$OWNER_ADDRESS $OWNER_CITY $OWNER_STATE $OWNER_ZIPCODE","$TITLE","<b>$TITLE</b>");
$currentrecord++;
} _________________ http://www.tagacloud.com/?id=3072
http://www.linkwebdirectory.com |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|