http://granderally.freecluster.eu/register.html
HTTP ERROR 500
My PHP code that fails to run, what I have tracked down is lack of permissions but at this point I am not sure, as I checked in mysql that I have permission to insert data, and thats all I try to do! And yes, I know I have removed servername and etc, just in case!
<?php
$servername = "";
$username = "";
$password = "";
$dbname = "";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error){
die("Connection failed:".$conn->connect_error);
}
$DFname = $_POST["DFname"];
$DLname = $_POST["DLname"];
$DDiscord = $_POST["DDiscord"];
$CFname = $_POST["CFname"];
$CLname = $_POST["CLname"];
$CoDiscord = $_POST["CoDiscord"];
$Car = $_POST["options"];
$sql = "INSERT INTO 'users' ('ID', 'DFname', 'DLname', 'DDiscord', 'CoFname', 'CoLname', 'CoDiscord', 'Car') VALUES('0', '$DFname', '$DLname', '$DDiscord', '$CFname', '$CLname', '$CoDiscord', '$Car')";
if($conn->query($sql) === TRUE){
echo "New record created succesfully";
} else{
echo "Error:" .$sql."<br>" . $conn->error;
}
$conn->close();
?>