Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $editID = $_GET['editID'];
  2. if(isset($_POST['edit'])) {
  3. $brandEdit = $_POST['brandEdit'];
  4. $serialEdit = $_POST['serialEdit'];
  5.  
  6. $editInventory = "UPDATE `inventories` SET `brand` = '$brandEdit', `serial` = '$serialEdit' WHERE `inventories`.`inventory_id` = '$editID'";
  7. $conn->query($editInventory);
  8. }
  9. ?>
  10.  
  11. <div class="col-md-12">
  12. <form method="POST" action="inventories.php">
  13. <input type="submit" name="edit" value="UPDATE">
  14. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement