Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70764

Accessing mySQL DB using php

$
0
0

@nicomorell wrote:

I’m getting the following error: GET http://localhost:8100/json.php 404 (Not Found). However, whenever I go to http://localhost:8100/json.php I also get the error Error: Cannot match any routes. URL Segment: ‘json’.

this.http.get("http://localhost:8100/json.php").subscribe( data => {
  this.productList = JSON.parse(data["_body"]);
}, err =>{
  console.log(err);
});

json.php is under the directory src/app/db/json.php

Any help is greatly appreciated!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70764

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>