Hi all,
Use this code
<?php
$con= new mysqli('localhost','user','huppassword','databasename')or die("Could not connect to mysql".mysqli_error($con));
$qr="select * from questions";
$result = mysqli_query($con, $qr);
$data = array();
while ( $row = $result->fetch_assoc() ){
// $data[] = json_encode($row);
$data[]=$row;
}
echo json_encode( $data );//this will be sent as response to the requesting device
?>
Use this code
<?php
$con= new mysqli('localhost','user','huppassword','databasename')or die("Could not connect to mysql".mysqli_error($con));
$qr="select * from questions";
$result = mysqli_query($con, $qr);
$data = array();
while ( $row = $result->fetch_assoc() ){
// $data[] = json_encode($row);
$data[]=$row;
}
echo json_encode( $data );//this will be sent as response to the requesting device
?>
Nice site....Please refer this site also Our vision success!Training are focused on perfect improvement of technical skills for Freshers and working professional. Our Training classes are sure to help the trainee with COMPLETE PRACTICAL TRAINING and Real time methodologies
ReplyDeleteDot Net Training in Chennai | Dot Net Classes in Chennai
Selenium Training in chennai | Selenium Coaching Institute in Chennai
Software Testing Training Institute in Chennai | | Testing Courses in Chennai
Java Training Institute in Chennai | Core Java Training in Chennai | Java Course and Certification
PHP Course in Chennai | PHP Training Institute in Chennai
If you are interested to learn more about the most sophisticated players in the outsourced product development industry, I'd highly recommend checking out this list of the best product development companies .
ReplyDeletesmm panel
ReplyDeletesmm panel
İş ilanları
instagram takipçi satın al
hirdavatciburada.com
Beyazesyateknikservisi.com.tr
servis
tiktok jeton hilesi
özel ambulans
ReplyDeleteuc satın al
minecraft premium
lisans satın al
nft nasıl alınır
yurtdışı kargo
en son çıkan perde modelleri
en son çıkan perde modelleri