table
authorPatrick McGuire <insidenothing@gmail.com>
Thu, 21 May 2020 21:09:01 +0000 (17:09 -0400)
committerGitHub <noreply@github.com>
Thu, 21 May 2020 21:09:01 +0000 (17:09 -0400)
admin/report.php

index 557a2ae..f82cf32 100644 (file)
@@ -6,6 +6,10 @@ $group_id = $_COOKIE['group_id'];
 $q="SELECT * FROM petitions where group_id = '$group_id' and admin_status = 'approved'";
 $r = $petition->query($q);
 $hide = array();
+?>
+
+<table>
+<?PHP
 while($d = mysqli_fetch_array($r)){
   echo "<h1>$d[petition_name]</h1>";
   $pID = $d['petition_id'];
@@ -14,10 +18,12 @@ while($d = mysqli_fetch_array($r)){
   while($d2 = mysqli_fetch_array($r2)){
     if (!in_array($d2['VTRID'], $hide)) {
       $hide[] = $d2['VTRID'];
-      echo "<li>$d2[date_time_signed] $d2[signed_name_as] $d2[signed_name_as_circulator] $d2[contact_phone]</li>";
+      echo "<tr><td>$d2[date_time_signed]</td><td>$d2[signed_name_as]</td><td>$d2[signed_name_as_circulator]</td><td>$d2[contact_phone]</td></tr>";
     }
   }
 }
-
+?>
+</table>
+  <?PHP
 include_once('footer.php');
 ?>