Тёмный

Convert Data from Mysql to JSON Formate using PHP 

Webslesson
Подписаться 96 тыс.
Просмотров 96 тыс.
50% 1

This video tutorial show you how to convert mysql data formate to JSON data formate using PHP. It simply fetch data from mysql database table and convert into JSON string format by using json_encode() function. Source Code - www.webslesson.info/2016/05/co...

Опубликовано:

 

1 май 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 119   
@AbhishekPandeyPoetry
@AbhishekPandeyPoetry 4 года назад
I was restless for the day. And then I found your video. Thank you so much.
@EdLaraweb
@EdLaraweb 5 лет назад
Thanks FRIEND!
@beosoftlabs
@beosoftlabs 8 лет назад
Brilliant, this is what i was looking for. Except, do we need to be repeatedly reminded about being friends? Loved the simplicity.
@mdmasud5888
@mdmasud5888 6 лет назад
This is why i follow your channel. Amazing tutorial.
@czsrac
@czsrac 6 лет назад
Your channel helped me so much with my semestral work. thanks!
@argenisjimenez8118
@argenisjimenez8118 3 года назад
I didint expect it to be so simple. thanks mate!.
@anupampareek
@anupampareek 8 лет назад
You have solved my problem with such ease, thank you very much!
@markm8090
@markm8090 5 лет назад
You've Got a Friend in Me
@patrascuflorin200
@patrascuflorin200 6 лет назад
Great! Thank you so much!
@muralidhar40
@muralidhar40 4 года назад
The robots have taken over our education, but they seem Friendly! Great tutorial.
@safanamunir1232
@safanamunir1232 6 лет назад
it was very helpful...thanku so much! :)
@Devil5Dandruff
@Devil5Dandruff 5 лет назад
Actuually it works thanks!
@albertsimtengu1019
@albertsimtengu1019 4 года назад
And i say thank u friend for this content... its exactly what i was looking for
@EduardoHernandez-cr6yf
@EduardoHernandez-cr6yf 5 лет назад
thank you very much, you saved my project
@youneskasdi
@youneskasdi 5 лет назад
You're not fooling anyone skynet, but thanks for the tutorial
@rohitpatil8452
@rohitpatil8452 5 лет назад
Thanks for the tut, need help. How to get the blob in an array along with text fields to return so that all can send or transfer as json response?
@bricegnanago409
@bricegnanago409 5 лет назад
So good ! Thank you
@wismannurabdulkholik7427
@wismannurabdulkholik7427 5 лет назад
Thank you, it work for me.
@DAMIANANDKAROL
@DAMIANANDKAROL 4 года назад
THANKS SO MUCH!!!!
@jengalabsafrica
@jengalabsafrica 7 лет назад
thanks big time..This was so helpful and easy to understand
@webslesson
@webslesson 7 лет назад
Hi Brenda, if you want any other help, please tell us...
@mahmoudchahine4457
@mahmoudchahine4457 5 лет назад
Thanks man your awsome
@vigneshviswanathan3483
@vigneshviswanathan3483 4 года назад
Thank You for this simple explanation
@luisjesussiancasflores7009
@luisjesussiancasflores7009 3 года назад
wow! it helps me a lot! Thank u
@octaalief1937
@octaalief1937 3 года назад
Thanks, friend. Really helpful
@howto5891
@howto5891 5 лет назад
you are great!
@zaibali8109
@zaibali8109 5 лет назад
Thank You for helping me
@AsimYilan
@AsimYilan 2 года назад
thank u 4 this video dude
@user-nj3lg7wi5r
@user-nj3lg7wi5r 2 года назад
Thank you very much.
@vijaykanthv5666
@vijaykanthv5666 6 лет назад
really very nice tutorial....
@soulsoup5283
@soulsoup5283 6 лет назад
thank you Mr.Robot Voice
@rkdasaris6247
@rkdasaris6247 7 лет назад
i need to know from here where ur coding ends by displaying the json data how to display the data in html table
@kadeon4380
@kadeon4380 4 года назад
YOU'RE THE BEST
@youcefdjediai6934
@youcefdjediai6934 4 года назад
many thanks bro
@arvi3
@arvi3 5 лет назад
What about your enemies? I'm sure they'd want to learn this too. Thanks Frenz 😑
@minaamir2648
@minaamir2648 5 лет назад
thanx perfect ..
@DhruvinS720
@DhruvinS720 Год назад
thanks for easy explanation 😍😃👌👏
@KiemPlant
@KiemPlant 4 года назад
Epic!
@MinhLe-xk5rm
@MinhLe-xk5rm 7 лет назад
Yes man you are da best!!!!!!
@webslesson
@webslesson 7 лет назад
Hi Cassandra thanks for appreciation.
@akhil3628
@akhil3628 7 лет назад
Webslesson so,how to send this json file to front-end (client side ) as output
@MinhLe-xk5rm
@MinhLe-xk5rm 7 лет назад
You should use JavaScript to output the data of the JSON file to an HTML file. Linked that HTML file to JS. Search up some tutorial on JSON and AJAX.
@syedaraimafatima5201
@syedaraimafatima5201 5 лет назад
Thanxxxxxxxxxxxxxxxx aloteeeeeeeeeeeee Sir your tutorial solve my problem which will be occur in my code
@marcosmathiasjunior2011
@marcosmathiasjunior2011 5 лет назад
thank you ! thank you !! I love you, I'm Brazilian, and I did not find the answer on Brazilian sites .. but there's my salvation !!
@lelis.designer
@lelis.designer 4 года назад
Amigo, eu fiz e deu certinho também, porém não pegou a acentuação, ficou tudo bagunçado, o seu tinha acentuação???
@caio4231
@caio4231 3 года назад
VEEEEERYYYY GOOOOOOD
@Leonism
@Leonism 2 года назад
thank you friend
@ajitpathak6437
@ajitpathak6437 7 лет назад
how to make complex json format from database content like your example....i mean nested json...object into another object..your this video so simple to understand by anyone..thanks
@OSPPRO
@OSPPRO 4 года назад
thank you sir.
@franciscodeassissoaressilv3905
@franciscodeassissoaressilv3905 4 года назад
2020 - Muito obrigado, funcionou direitinho pra mim
@lelis.designer
@lelis.designer 4 года назад
Amigo, eu fiz e deu certinho também, porém não pegou a acentuação, ficou tudo bagunçado, o seu tinha acentuação???
@franciscodeassissoaressilv3905
@franciscodeassissoaressilv3905 4 года назад
Tem sim, pega acentuação gráfica e tudo mais...
@zainurrahmansehan5531
@zainurrahmansehan5531 2 года назад
Thanks for the tutorial. Is there any way to convert the geolocation data from mysql table to topojson?
@tharindukumara8955
@tharindukumara8955 6 лет назад
Thanks sir
@durgeshsingh6380
@durgeshsingh6380 3 года назад
Thanks bro
@imransk6469
@imransk6469 6 лет назад
Thank you sir nice tutorial
@webslesson
@webslesson 6 лет назад
Oh, thanks! Always at your service.
@mohammadashjari18
@mohammadashjari18 3 года назад
Thanks you
@tarunjoseph3126
@tarunjoseph3126 5 месяцев назад
thanks bro
@majormfr8646
@majormfr8646 4 года назад
awesome work how will we do it for multiple tables at once
@ervinehinay1682
@ervinehinay1682 3 года назад
Thanks
@jhomara0904
@jhomara0904 7 лет назад
Thanks for the video, I have a question. How can I use this array as a variable in a javascript file?
@csandreas1
@csandreas1 5 лет назад
use .each(data) to loop through the array, then access json values by something like data.name, data.id, etc
@Meinungsmacher
@Meinungsmacher 7 лет назад
i am a robot
@NihalSaxena95
@NihalSaxena95 8 лет назад
i have a database which contain image also so how to convert that into json
@oussamacheta7106
@oussamacheta7106 5 лет назад
THANK YOU MY ROBOT FRIEND !!
@JitendraKumar-qh1bd
@JitendraKumar-qh1bd 6 лет назад
sir image save in database in json format plz tell me
@TheCaiphus
@TheCaiphus Год назад
thanx
@ashokchandra4911
@ashokchandra4911 3 года назад
Usefull my problem is solved 👍
@webslesson
@webslesson 3 года назад
Glad to hear that!
@astigmatik
@astigmatik 3 года назад
@@webslesson pls answer my question 😊
@abdulfattah6978
@abdulfattah6978 6 лет назад
superb
@webslesson
@webslesson 6 лет назад
Thanks Abdul Fattah for your thoughtful words.
@_rahiali
@_rahiali 4 года назад
Friend thank you so much for useful video. Friend can you make some video on how to filter and search through json data. Friend I want to have multiple range slider and be able to run multiple search queries on my jason_array. Thank you.
@bigzy7
@bigzy7 6 лет назад
why encode in json when we can print out directly in page?
@davy5537
@davy5537 4 года назад
Beer for you my friend
@astigmatik
@astigmatik 3 года назад
May I know how to do error checking after mysqli_connect, and query?
@priteshsingh5976
@priteshsingh5976 6 лет назад
what about when data is more the 20K in one table
@brilliantcity
@brilliantcity 4 года назад
You also thank you
@Nerdhaunt
@Nerdhaunt 7 лет назад
You are using local host, What if I want to use the cloud server?
@webslesson
@webslesson 7 лет назад
thanks. I have use local host while making video.
@Nerdhaunt
@Nerdhaunt 7 лет назад
If I want to use cloud hosting then I have to put the php file in the Cpanel right?
@ObeyBlake
@ObeyBlake 7 лет назад
That's correct.
@veeragandrati5954
@veeragandrati5954 6 лет назад
I tried the same procedure but i am not able to see the data. i have not missed any step, could you please help me?
@ak4shbha6wat58
@ak4shbha6wat58 3 года назад
Sir if we dont need array we need only one value then?
@pavankalyan5534
@pavankalyan5534 4 года назад
Hai but i am fetching multiple row from DB and how to receive the data in AJAX ...?
@dheeraj5023
@dheeraj5023 4 года назад
👍👍👍👍
@BADGRAPHIX
@BADGRAPHIX 8 лет назад
My code's the same as yours but I get the error "mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in /home1/badgraphix/public_html/readData.php on line 21"
@BADGRAPHIX
@BADGRAPHIX 8 лет назад
Never mind, it was caused by an error in my MySQL syntax.
@TheTopTenTrends
@TheTopTenTrends 6 лет назад
Use Single Quote $sql = 'SELECT * FROM tbl_employee'; instead of double quote $sql = "SELECT * FROM tbl_employee";
@pathakvivek7865
@pathakvivek7865 6 лет назад
how to give the whole json object name...??
@Holycrabbe
@Holycrabbe 6 лет назад
I had problems with this code : but found the solution to be the following while ( $row = $result->fetch_assoc() ){ $json_array[] = json_encode($row); } I hope this can help somebody out
@vidhitchandra4199
@vidhitchandra4199 6 лет назад
Jacob Kjaerulf you saved my day.This worked me thanks a lot
@TheCliff
@TheCliff 5 лет назад
Great help. Thank you Jacob Kjærulf
@_luca.s
@_luca.s 5 лет назад
THANK YOU SO MUCH OMG I've been trying to get this to work for hours I actually love you
@minonkh
@minonkh 5 лет назад
fetch_assoc() ) { $json_array[] = json_encode($row); } echo json_encode($json_array); ?> why tf is that what i get displayed on my php script
@skiptrack326
@skiptrack326 2 года назад
ok my friend
@rafaelmakiyama2974
@rafaelmakiyama2974 5 лет назад
And How can I do that using Java EE?
@pholoshoseloane986
@pholoshoseloane986 5 лет назад
Rafael Makiyama friends it's a robot
@moayadal-falahi7682
@moayadal-falahi7682 4 года назад
How to access json data bro?
@dreboard9935
@dreboard9935 5 лет назад
Enough with the friends
@mr.sopeou9319
@mr.sopeou9319 3 года назад
Do not support Unicode please help m
@azzedinezouba940
@azzedinezouba940 3 года назад
Salut je besoin d'aide svp J'ai un fichier json crypté vous pouvez me l'aide pour decrypte???
@austinedion5906
@austinedion5906 3 года назад
wow grt but u sound like robot
@sophiahu7418
@sophiahu7418 6 лет назад
r/totallynotrobots
@ok-ze2ft
@ok-ze2ft 5 лет назад
ironical enough your name is Sophia
@bhupathituraga3593
@bhupathituraga3593 5 лет назад
i am getting null all time
@masbro1901
@masbro1901 5 лет назад
if you not use ORDER BY id , it will not ordered as in table. so use ORDER BY id. and thank you for your tutorial.
@sachindeshpande1
@sachindeshpande1 4 года назад
Friend, Friend, Friend
@marcopandolfi7709
@marcopandolfi7709 3 года назад
Ciao
@Nastya99_99
@Nastya99_99 2 года назад
This no JSON, json first {
@Fullful
@Fullful 2 года назад
Horrendous robo (translation) voice. Repeatedly using friend. To be a friend requires a lot more on a personal level.
@datahat642
@datahat642 4 года назад
very bad voice quality
@audyswan
@audyswan 3 года назад
thanks bro
Далее
How to use Mysql View in PHP Code
5:22
Просмотров 13 тыс.
Learning MySQL - JSON in MySQL
19:12
Просмотров 64 тыс.
This Stop Motion is Insane
00:39
Просмотров 7 млн
Я ВЕРНУЛСЯ 🔴 | WICSUR #shorts
00:57
Просмотров 1,4 млн
Learn JSON in 10 Minutes
12:00
Просмотров 3,1 млн
Create dynamic JSON file in PHP Mysql
7:44
Просмотров 48 тыс.
Save HTML Form Data to a MySQL Database using PHP
24:38
Convert rows from a SQL Query or Table to JSON format
10:18