How to Create PHP CRUD REST API



Learn how to build a rest api in PHP Mysql. How to make CRUD Api in PHP step by step. How insert, update or delete mysql table data by using PHP API with Ajax. How to use PHP Restful Api web service for add, edit or remove data from mysql table.

For complete source and online demo – https://www.webslesson.info/2018/05/how-to-make-simple-crud-rest-api-in-php-with-mysql.html

Related Posts

32 Comments

  1. For anybody who's having this error:
    "Warning: count(): Parameter must be an array or an object that implements Countable in C:xampphtdocswebserviceworkfetch.php on line …" check all of your url stored in $api_url variable. There's a specific path to the files in the video and you might have it in a different folder, under a different name, etc. Otherwise there is no object, it is null. Hope this helps.

  2. Sir can you please show how to implement the API in Codeigniter as you have done it with core php – How to Create PHP CRUD REST API. Many users like me will be greatly benefited with this. Thanks.

  3. dear sir, please help me, when i use this code, i have a one database proublem, what is this error and how to isolve this ?

    Warning: count(): Parameter must be an array or an object that implements Countable in C:xampphtdocsREST_PHPworkfetch.php on line 40
    NO Data Found

  4. my question is about

    when i retrieved data using curl_exec() the data is automatically encoded

    i retrieve data from database so i think i retrieved it in array form

    but i retrieved it as json form why

  5. Hi, great tutorial.
    I have a large database that is the result of 13 years of supplying a desktop school system. Now I want to access this data via application – phone / tablet; Which path to follow with the use of API?

Leave a Reply

Your email address will not be published.

© 2022 Code As Pro - Theme by WPEnjoy · Powered by WordPress