Category : php

I am using ajax to access a php file while running the apk version from my android device (it didn’t even work on the android emulator). The php file is in the htdocs folder and the XAMPP is activated. $.ajax({ type:”post”, url: “http://192.168.0.111/hetazotakan/read.php”, success: function(result){ var data=JSON.parse(result); console.log(data); var place=document.getElementById(“news_space”); for(var i=data.length-1;i>=0;i–){ place.innerHTML+=`<li class=”one_third”> <article><a ..

Read more

I want to insert data array to mysql from android through PHP webservice, but when i can’t receive data from my file PHP, anyone can help me solve it. Thank you very much. Sending (Android) JSONObject jsonObject=new JSONObject(); for(int i=1;i<=countSeat;i++) { try { jsonObject.put("cinemaSeatID_"+i,SaveCinemaID[i]); } catch (JSONException e) { e.printStackTrace(); } params.put("cinemaSeatID",jsonObject.toString()); params.put("cinemaHallID",CinemaHallID); } return ..

Read more