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

  • SEARCH
  • Home
  • 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 8133557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:38:59+00:00 2026-06-06T09:38:59+00:00

FQL statement has executed and array object has been passed to $fqlResult successfully. However,

  • 0

FQL statement has executed and array object has been passed to $fqlResult successfully.

However, I’m unable to write name into my <span> through innerHTML. Neither exceptions nor errors have occurred. Other columns from the table such as latitude, longitude, page_id, checkin_count are able to write into respective <span> correctly. Only name is giving me problem.

May I know what is preventing me from writing name into my <span>?

FQL Place Documentation

FQL Statement

SELECT page_id,name,latitude,longitude,checkin_count 
FROM place 
WHERE distance(latitude, longitude,"1.2894680406278", "103.86311775635") < 200 
ORDER BY checkin_count DESC 

Results from print_r($fqlResult) appears to be consistent with results from Graph API Explorer.

HTML

<b>Page Name: </b> <span id="fName"></span>
<b>Latitude: </b> <span id="fLatitude"></span>
<b>Longitude: </b> <span id="fLongitude"></span>

Observation

JavaScript Setup 1 (Blockage)

document.getElementById('fName').innerHTML = <?=$fqlResult[0]['name']?>;
document.getElementById('fLatitude').innerHTML = <?=$fqlResult[0]['latitude']?>;
document.getElementById('fLongitude').innerHTML = <?=$fqlResult[0]['longitude']?>;

//Output
No. of Facebook Checkins: 
Latitude: 
Longitude:

JavaScript Setup 2 (No blockage – Okay)

document.getElementById('fLatitude').innerHTML = <?=$fqlResult[0]['latitude']?>;
document.getElementById('fLongitude').innerHTML = <?=$fqlResult[0]['longitude']?>;

//Output
No. of Facebook Checkins: 
Latitude: 1.2894680406278
Longitude: 103.86311775635 
  • 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-06-06T09:39:01+00:00Added an answer on June 6, 2026 at 9:39 am

    Latitude and logitude are numbers, so no problem there.

    But name is a string (a.k.a. text literal), and what did you forget to put around the value in your JavaScript code …? Exactly, string delimiters.

    You should really learn how to work with your browser’s error console …!

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

Sidebar

Related Questions

i have this fql statement $fql_query = array( 'method' => 'fql.query', 'query' => 'SELECT
I have a FQL statement like this: String query = SELECT post_id, actor_id, target_id,
I trying execute next FQL query SELECT uid FROM user WHERE name='Vovka' and getting
I am unable to retrieve Status using FQL for Some Users...for Most of User
In this script function fql(){ FB.api('/me', function(response) { var query = FB.Data.query('select uid, name,
I am executing a FQL query, and if I print the array with the
The graph or FQL (which has the same data) do not list the relevant
I want to create/show an activity stream of everything that has been published/commented on
I have this FQL: $femail = $facebook->api(array( 'method' => 'fql.query', 'locale' => 'en_US', 'query'
I'm using the following code to retrieve a user's friends: $fql_query_url = 'https://graph.facebook.com/fql?q=SELECT+uid,+name,+pic_square+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())+order+by+name&access_token=' .

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.