Insert Command Doest work

Can anyone pls tell me what is wrong with my insert command? its working in xamp but when i uploaded it here on webhost it doesnt work

$query="INSERT INTO accounts (first_name,last_name,user_type,user_name,user_email,verification_code,password,date_registered) VALUES ('$fname','$lname','$userType','$un','$em','$random_hash','$pw','$dateR')";

your help is much appreciated

I think you forgot the mysqli_query($conn, $query); commands?

1 Like