Update hard_copy.php
authorPatrick McGuire <insidenothing@gmail.com>
Thu, 14 May 2020 17:25:55 +0000 (13:25 -0400)
committerGitHub <noreply@github.com>
Thu, 14 May 2020 17:25:55 +0000 (13:25 -0400)
hard_copy.php

index 7b9e345..d154fb6 100644 (file)
@@ -4,7 +4,7 @@
 // y how far from top
 include_once('/var/www/secure.php'); 
 $id = $_COOKIE['pID'];
-$q = "select * from petitions where id = '$id'";
+$q = "select * from petitions where petition_id = '$id'";
 $r = $petition->query($q);
 $d = mysqli_fetch_array($r);
 
@@ -40,8 +40,8 @@ $SIGNED = date('Y-m-d');
 //}
 
 // name
-//imagettftext($jpg_image, 50, 0, 350, 1070, $black, $font_path, $_COOKIE['pNAME']);
-imagettftext($jpg_image, 50, 0, 350, 1070, $black, $font_path, $debug);
+imagettftext($jpg_image, 50, 0, 350, 1070, $black, $font_path, $_COOKIE['pNAME']);
+//imagettftext($jpg_image, 50, 0, 350, 1070, $black, $font_path, $debug);
 
 // address
 imagettftext($jpg_image, 50, 0, 400, 1300, $black, $font_path,  $_COOKIE['pADDRESS']);