im farely new to php coding. I have been using web pages to assist me in learning. But right now im stuck.
Im trying to insert a record into a table but im unable.
the php just produces the message "error:"
but gives no further info. any assistance would be great.
P.S the conenction to the table is working fine, already checked i am able to read data, and obviously the username and password are for read and write rights...
$sql="INSERT INTO users (email, username, password, full_name, company_name, active, active_until, start_date, remote_backup, local_backup)
VALUES
('".$register_email_address."','".$register_username."','".$register_password."','".$register_fullname."','".$register_company_name."','".$active."','".$active_until."','".$start_date."','".$remote_backup."','".$local_backup."'";
if (!mysqli_query($sql,$con))
{
die('Error: ' . mysqli_error());
}
echo "1 record added";