This is the code to insert into MySQL. However, for some reason, it is not sending data to the database.
$con=mysqli_connect("localhost","esferinf_fpessoa","mypassword","esferinf_factura");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query("INSERT INTO Entregas (dia, cliente, toalhetes, higienico, bidons)
VALUES ('$dia', '$cliente','$toalhetes', '$higienico', '$bidons')");
I don't understand what's going on, what's missing to me?