prepare($query); $stmt->bind_param("sss", $username, $email, $hashed_password); // Execute the statement $result = $stmt->execute(); if ($result) { echo "Registration successful. Login here."; } else { echo "Error: " . $mysqli->error; } // Close the statement $stmt->close(); } ?>