Update search.php
authorPatrick McGuire <insidenothing@gmail.com>
Mon, 29 Jun 2020 00:25:46 +0000 (20:25 -0400)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2020 00:25:46 +0000 (20:25 -0400)
admin/search.php

index 48c05cc..6734ce9 100644 (file)
@@ -10,7 +10,7 @@ if ($_POST['LASTNAME']){
   $LASTNAME=$_POST['LASTNAME'];
 }
 if($LASTNAME != ''){
-  $q = "select * from VoterList where LASTNAME = '$LASTNAME' ";
+  $q = "select * from VoterList where LASTNAME like '%$LASTNAME%' ";
   echo "$q";
   $r = $petition->query($q);
   while ($d = mysqli_fetch_array($r,MYSQLI_ASSOC)){