FQL statement has executed and array object has been passed to $fqlResult successfully.
However, I'm unable to write name into my 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 correctly. Only name is giving me problem.
May I know what is preventing me from writing name into my ?
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
Page Name:
Latitude:
Longitude:
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
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)