/    Sign up×
Community /Pin to ProfileBookmark

Phoogle maps displaying textin bubble not working

I know it isnt too well documented but maybe someone might know

Im using the following as part of my google maps phoogle php code to add a point to the map the $soemthing values are received from a database further up my script

[CODE]$map->addGeoPoint($row[‘lat’],$row[‘lng’],'<div style=”width:400px”><p>’.$photo.$propertyname.$phone.$email.$website.$description.'</p></div>’,$row[‘icon’]);
$row = mysql_fetch_array($result);[/CODE]

The problem i am having is with the $description, that is containing text that has many lines with line breaks, further up the script i was using nl2br() to make all the line breaks into <br> tags but any way i do it it does not work, only that portion is causing the map not to display everything else works fine on its own, it seems to be any text getting inputted into it that contains multiple lines of text, if it is one solid continuous line of text it works fine

Anyone know what i may be doing wrong or how i can fix this

Thanks

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @BWWebDesigns spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.23,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...