PHP registration form not sending data to MySQL database

So I am trying to create a log in system for my website.
When I manually insert a user I can log in fine and my database also sees that I am logged in.
But when I try to register a new user I get send to the ‘registration successful’ page.
Although the information I inserted were never send to my database.

Here are the codes:

Connection:

[php] <?php
include_once ‘psl-config.php’;
$mysqli = new mysqli (HOST, USER, PASSWORD, DATABASE);[/php]

Config:

[php] <?php
/**
* These are the database login details
*/
define(“HOST”, “localhost”); // The host you want to connect to.
define(“USER”, “username”); // The database username.
define(“PASSWORD”, “password”); // The database password.
define(“DATABASE”, “database”); // The database name.

define("CAN_REGISTER", "any");
define("DEFAULT_ROLE", "member");
 
define("SECURE", FALSE);    // FOR DEVELOPMENT ONLY!!!![/php]

I have no idea what I am doing wrong as I am following this:

You need to add the code that receives the form data and insert it into the database

Sponsor our Newsletter | Privacy Policy | Terms of Service