Update report.php
[clinton/MarylandElectronicPetitionSignature.git] / admin / search.php
CommitLineData
9eb13713
PM
1<?PHP
2include_once('bots.php');
3include_once('../slack.php');
4include_once('security.php');
5include_once('/var/www/secure.php'); //outside webserver
6include_once('functions.php');
7include_once('header.php');
9eb13713
PM
8$LASTNAME='';
9if ($_POST['LASTNAME']){
10 $LASTNAME=$_POST['LASTNAME'];
11}
4b037aa9 12if($LASTNAME != ''){
c34525f8 13 echo "<ol>";
ff151ddf 14 $q = "select * from VoterList2 where LASTNAME like '%$LASTNAME%' limit 0, 5000 ";
f890236a
PM
15 echo "$q";
16 $r = $petition->query($q);
c8c10d76 17 while ($d = mysqli_fetch_array($r,MYSQLI_ASSOC)){
8fd56767 18 echo "<li>'$d[FIRSTNAME]' '$d[LASTNAME]' '$d[HOUSE_NUMBER]' '$d[RESIDENTIALZIP5]'</li>";
f890236a 19 }
c34525f8 20 echo "</ol>";
9eb13713
PM
21}
22?>
23<form method='POST'>
4b037aa9 24Last Name <input name='LASTNAME'><input type='submit'>
9eb13713
PM
25</form>
26
27<?
28
29
30include_once('footer.php');