Database returns error code 01

Hi, I have a database connection to a MariaDB database. It was working just fine, but it now returns a “Bad Request, Error code 01”. How can I fix this?

I am using the MySQL file from puravidaapps. With the latest update from 2024/04/24

as you can see yourself from the script from here App Inventor Tutorials and Examples: MySQL | Pura Vida Apps, your logic fails at the first if statement

if( isset($_POST['query']) && isset($_POST['key']) ){    
...
} else {
  header("HTTP/1.0 400 Bad Request");
  echo "Bad Request, Error code 01";
}

which means, you are trying to call the script via a browser of you did not set the key
what about providing a screenshot of your relevant blocks?

Taifun

It’s fixed! Nothing was actually wrong with the script. I am also connecting an esp-32 to the database via the same file. I forgot to put ‘query=’ in there. Plus I messed up something else in my app so the data isn’t appearing, but the database is fine. Thank you anyway for the quick reply!