MySQL cannot do CRUD functions via REST API

Website URL

http://sithaso.infy.uk/

Error Message

I just deployed a website and its using a MySQL REST API via a php file. When running locally during development everything works on my PC. From the look of things, the WebApp when deployed is able to read the contents and display them, but it seems I cannot do Create, Update and Delete calls against my database.

Its giving an “Interval Server Error” when executing insert, update and delete but select statements work

Other Information

The REST API I am using is based on this PHP library, GitHub - mevdschee/php-crud-api: Single file PHP script that adds a REST API to a SQL database

Reproduction

  1. Click on the Hamburger > My Family Records
  2. Click on the Add Button (top right of table)
  3. Add something on the form
  4. Click Save

It won’t work, unless the API calls come from the same domain

6 Likes

An “Internal Server Error” sounds like the PHP code is crashing. Does this help?

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.