Commit | Line | Data |
---|---|---|
9eb13713 PM |
1 | <?PHP |
2 | include_once('bots.php'); | |
3 | include_once('../slack.php'); | |
4 | include_once('security.php'); | |
5 | include_once('/var/www/secure.php'); //outside webserver | |
6 | include_once('functions.php'); | |
7 | include_once('header.php'); | |
9eb13713 PM |
8 | $LASTNAME=''; |
9 | if ($_POST['LASTNAME']){ | |
10 | $LASTNAME=$_POST['LASTNAME']; | |
11 | } | |
4b037aa9 | 12 | if($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 | 24 | Last Name <input name='LASTNAME'><input type='submit'> |
9eb13713 PM |
25 | </form> |
26 | ||
27 | <? | |
28 | ||
29 | ||
30 | include_once('footer.php'); |