connecton via rest api | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

connecton via rest api

i neef to show values via rest api from sql using php. how should i do it?

1st Jan 2018, 10:30 PM
Piotr_silarow CarrefourPL
Piotr_silarow CarrefourPL - avatar
1 Answer
+ 1
If you want to write one yourself you can use the URL parsing functions within PHP to decode the request. Then have PHP query the database and return the data in the JSON , XML, or other format you wish to supply to the user. There are books and tutorials on building actual REST api engines that work with your Web server and pass the decoded request to your specific database handler php page.
10th Jan 2018, 12:02 AM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar