Wikitude
play_for_work
Forum
FAQ
Documentation
Download
wikitude.com
How can we help you today?
Enter your search term here...
Search
Start a new topic
Discussions
Wikitude SDK (Android, iOS, UWP)
Wikitude SDK Questions or Problems
Webservice Invalid
D
Dwi Mahmud Effendi
started a topic
almost 7 years ago
Webservice Invalid
1 Comment
D
Dwi Mahmud Effendi
said
almost 7 years ago
I'm done obtained a trial key
I have json from table mySQL, like this
https://bukan-avatar.com/LBS_PHP/api.php
(Invalid
https://api.myjson.com/bins/3nzct
(Valid)
This problem is invalid Webservice Response, can you help me? Whats wrong? or cannot support with PHP? and should be Parsing
this my code PHP
// connectiong to database
$con = mysqli_connect(HOST, USER, PASS, DB) or die('Unable to Connect');
//Creating sql query
$sql = "select * from lbs";
//getting result
$r = mysqli_query($con, $sql);
//creating a blank array
$result = array();
//looping through all the records fetched
while ($row = mysqli_fetch_array($r)) {
//Pushing name and id in the blank array created
array_push($result, array(
"id" => $row,
"longitude" => $row,
"latitude" => $row,
"description" => $row,
"altitude" => $row,
"name" => $row
));
}
//ini kode untuk membuat JSON dalam bentuk array
echo json_encode($result);
mysqli_close($con);
Thank You So
Login
or
Signup
to post a comment
More topics in
Wikitude SDK Questions or Problems
Instatiation of WTArchitectView compile errors
Point of interest - native iOS
Slider
Camera lagging / slow in native Swift application
Create a web service
N-th ImageDrawable not displayed
Radar Example
stop defaultlocationmanager and use architectview.injectlocation ios 10
WTC Size Limit
AngularJS and wikitude
See all 3870 topics
© 2021 Wikitude, a Qualcomm company
Dwi Mahmud Effendi