I have a Javascript variable 'id' which contains a unique network id which I would like access in the PHP code to update my table.
$("body").on("click", "#" + feature.properties.network_id , function(e) {
$id = feature.properties.network_id
layer.setStyle(disable);
<?php
$connection = mysqli_connect('localhost', 'root', 'root', 'robsim');
$sql = mysqli_query($connection,"UPDATE `all_data` SET `Status` = 'Done' WHERE `all_data`.`Network_ID` = id;");
?>
});