Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:40:47+00:00 2026-05-31T05:40:47+00:00

Strange Issue. I have the some code that queries a database and prases the

  • 0

Strange Issue.

I have the some code that queries a database and prases the results.

$MAP_OBJECT = new GoogleMapAPI(); $MAP_OBJECT->_minify_js = isset($_REQUEST["min"])?FALSE:TRUE;
//$MAP_OBJECT->setDSN("mysql://user:password@localhost/db_name");
// Make a MySQL Connection
$query = "SELECT * FROM `gpsdata`"; 
$result = mysql_query($query) or die(mysql_error());
$print = '$MAP_OBJECT->addMarkerByCoords';
    while($row = mysql_fetch_array($result)){
          $long = $row['longitude'];
          $lat = $row['latitude'];
          $router = $row['routername'];
          $desc = $row['desc'];
          $div = $row['div'];

        echo ("$print($long,$lat,\"$router-$desc\", \"$router-$desc<br><a href=\"./$div/$router\">Site Info</a>\");");
}

This is what a result looks like.

$MAP_OBJECT->addMarkerByCoords(-79.064250,67.175501,"xxx-SITE", "xxx-SITE<br><a href=\"./riv/xxx\">Site Info</a>");

If I manually create the entry the icon appears on the map. If I run the following query the results just print on the screen, nothing on the map. All of this takes place before the header info.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Not sure what to do, I have tried a few things, all with the same result.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:40:48+00:00Added an answer on May 31, 2026 at 5:40 am

    You may be echoing out your statements before any templating has been done.

    If you add:

    ob_start();
    

    above:

    $MAP_OBJECT
    

    This will turn output buffering on – and may sort the issue out

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting some strange behavior involving database queries that I have never seen
I have a strange issue from a client in that our code, which they
I have a very strange issue that only affects webkit browsers for some reason,
I have a strange issue that has arisen recently: Whenever I enter text, even
I am trying to debug a strange issue with users that have LogMeIn installed.
I am facing a very strange issue. I have a SharePoint webpart that displays
I have a strange, sporadic issue. I have stored procedure that returns back 5
I have a strange issue with my code I can't seem to figure out.
I have some strange behavior occurring in an ASP.NET application that I am trying
I am running into a strange issue. I have a dropdown list that contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.