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>
}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>