Skip to content
Permalink
8c5f4bbdea
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (13 sloc) 345 Bytes
<?php
include ('config.php');
$value=$_GET['value'];
if ($value == 1) {
$sql= "UPDATE valve INNER JOIN users SET v_value=$value WHERE id = v_id";
$result=mysqli_query($var,$sql);
}
else{
$sql= "UPDATE valve INNER JOIN users SET v_value=$value WHERE id = v_id";
$result=mysqli_query($var,$sql);
}
header("Location:main.php");
?>