I have a problem with my code. I think it's good but the console says its not:
Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/u772833821/public_html/DB_Functions.php on line 66
Here is the code :
$result = mysqli_query($con, "INSERT INTO users SET (email, username, encrypted_password, salt, created_at) VALUES('$email', '$uname', '$encrypted_password', '$salt', NOW())");
Please follow steps, there are more then one correction:
1. Remove SET from INSERT query
2. Check connection error
Perhaps issue with connection. Let me know what is the output from point 2.
Your query is incorrect. Try as below :
Try to check
$con
is valid or not:References: