I am getting error 400 in mysql

i tried aia file of puravida and when i tried to create a table i am getting error 400 , please check my aia =
mysql_puravida.aia (9.0 KB)
Screenshot 2023-12-18 100901
Screenshot 2023-12-18 105351

Your error (404)

image

I get error (400) "Bad request" which indicates an issue with your SQLKey, or something else....

You could test your ability to connect to the database with a php file like this:

<?php
$servername = "localhost";
$username = "username";
$password = "password";

// Create connection
$conn = new mysqli($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>

You are using 000webhost so in php script replace ...

You didn't make the above proposed changes in your script. Also after the changes in script make sure that you upload the script in public_html folder

and choose php version 7.4

for 000webhost see also

i updated php version to 7.4 , but still getting same error

And did you made changes to script ? Also is your database's password same as SQLkey ? Because I tried to enter your database with Filezilla and I get error due to password

yes my sql key and password are same

now when i try your aia I get error 500, try to delete .htaccess from your public_html folder

https://www.000webhost.com/forum/t/http-500-error-when-accesing-the-site/233509/2

yes i deleted that , now i have only one folder public html , i also checked the aia i am also getting error 500