$email data = $_GET ["email"];
$password_data = $ _GET ["password"];
This code should get the form input via HTTP GET or POST
$sql = "INSERT INTO user (email, password)
VALUES ($email_data, $password_data)";
This should insert the data into the SQL database
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' )' at line 2
And this is the error I get
I tried already other ways but then the data inserted into the SQL database was empty.
Can y'all help me?
I tried some code changes like VALUES ($_GET["email"], $_GET["password"])";
and i tried it too with $_POST