Update abuse.php
authorPatrick McGuire <insidenothing@gmail.com>
Tue, 26 May 2020 16:51:25 +0000 (12:51 -0400)
committerGitHub <noreply@github.com>
Tue, 26 May 2020 16:51:25 +0000 (12:51 -0400)
admin/abuse.php

index e6ea57b..4e5eecf 100644 (file)
@@ -39,7 +39,7 @@ include_once('header.php');
 if (isset($_GET['ip_address'])){ 
   $ip = $_GET['ip_address']; 
   echo "<h1>Review $ip</h1><table width='100%' border='1' cellpadding='5' cellspacing='5'>";    
-  $q = "SELECT * FROM  signatures where ip_address = '$ip' ";
+  $q = "SELECT * FROM  signatures where ip_address = '$ip' order by signature_status ";
   $r = $petition->query($q);
   while($d = mysqli_fetch_array($r)){
     echo "<tr>
@@ -62,7 +62,7 @@ if (isset($_GET['ip_address'])){
 }elseif (isset($_GET['VTRID'])){ 
   $VTRID = $_GET['VTRID'];
   echo "<h1>Review $VTRID</h1><table width='100%' border='1' cellpadding='5' cellspacing='5'>";   
-  $q = "SELECT * FROM  signatures where VTRID = '$VTRID' ";
+  $q = "SELECT * FROM  signatures where VTRID = '$VTRID' order by signature_status ";
   $r = $petition->query($q);
   while($d = mysqli_fetch_array($r)){
     echo "<tr>