Update print.php
authorPatrick McGuire <insidenothing@gmail.com>
Mon, 25 May 2020 15:24:22 +0000 (11:24 -0400)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 15:24:22 +0000 (11:24 -0400)
admin/print.php

index 7aea0cd..ec79a1b 100644 (file)
@@ -3,9 +3,11 @@ include_once('/var/www/secure.php');
 include_once('../slack.php'); 
 $id = intval($_GET['id']);
 $name=$_GET['name'];
+$now = date('r');
 if ($id == 0 || $name  == ''){
  die("Error #".__LINE__);
 }
+$petition->query("update signatures set printed_status = '$name printed on $now' where id = '$id' ");
 $q = "select * from signatures where id = '$id' ";
 $r = $petition->query($q);
 $d = mysqli_fetch_array($r);