I am trying to learn how databases and local servers work from on a linux environment, but for some reason, data is not being added to my database. I am running Ubuntu 18.04 and am using XAMPP for the SQL and PHP servers. I will put my code below. My goal was to be able to enter data through an html form and have that data be added directly into my database.
<?php
$connection = mysqli_connect("localhost", "root", "****************"); // Establishing Connection with Server
$db = mysqli_select_db($connection, 'app_login'); // Selecting Database from Server
// Fetching variables of the form which travels in URL
$ID = $_POST['ID'];
$email = $_POST['Email'];
$username = $_POST['username'];
$password = $_POST['password'];
$query = mysqli_query($connection, "INSERT INTO 'users' (id, username, password, email) VALUES ('$ID', '$username', '$password', '$email')");
mysqli_close($connection); // Closing Connection with Server
?>
I am able to test this code fine in localhost through my web browser without any error messages. Any ideas on what the problem could be?