![]() ![]() * Always set the map height explicitly to define the size of the div Sc_lookup(ds,"SELECT latitude,longitude,first_name,surname FROM staff WHERE active=1") My code looks like this: $LatLong = array() I have tried rtrim and trim, and neither work, but they do take the value right off of the end of the whole result, if that makes sense?Īpologies in advance if this is incredibly simple! ![]() I cannot get my head around how to remove this. It works perfectly, however throughout the generated array, it automatically places a comma at the end of every line. ![]() I am essentially selecting multiple fields from the database, preparing them using json to be placed inside a function for a Google Maps API (latitude and longitude, firstname and surname for description). So hopefully somebody can help.įirstly, I am using scriptcase, although this shouldn't matter as I am using a blank application and the only scriptcase macro I am utilising in my code is a database lookup, as you will see. I have an issue which has been causing me a headache for a few days and is probably a really simple fix for somebody with a bit more knowledge around json data than me. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |