[Resolved] PHP Syntax question
Quite inexpert on PHP, but I am trying to pull geo-mashup coordinates with a template function. I am just having issues injecting the function with the coordinates. I am using this function:
<?php $coords = GeoMashup::post_coordinates(); echo GeoMashup::map('map_content=global&remove_geo_mashup_logo=true&radius_mi=10&near_lat=' . $coords['lat'] . '&near_lng=' . $coords['lng'] . '') ?>
I am guessing I messed up here
near_lat=' . $coords['lat'] . '(and with the immediately following piece of code for lng).
How can I inject those coordinates in the function??
- The topic ‘[Resolved] PHP Syntax question’ is closed to new replies.