query log
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s

This commit is contained in:
Chris 2023-11-26 10:39:08 +01:00
parent 41e14cdfa0
commit 1dc90e8e36
2 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,8 @@ class Smart extends Page {
{ {
$db = new SQLite3(ROOT.DS.'../crawler/data.db'); $db = new SQLite3(ROOT.DS.'../crawler/data.db');
$q = $_REQUEST['q']; $q = $_REQUEST['q'];
$res = $db->query("SELECT * FROM results WHERE teilnehmer LIKE '$q'"); $query = "SELECT * FROM results WHERE teilnehmer LIKE '$q'";
$res = $db->query($query);
$results = []; $results = [];
while($row = $res->fetchArray()) while($row = $res->fetchArray())
{ {
@ -26,6 +27,7 @@ class Smart extends Page {
} }
$this->set('results', $results); $this->set('results', $results);
$this->set('query', $query);
$this->set('template', 'search.html.php'); $this->set('template', 'search.html.php');
} }

View File

@ -1,3 +1,5 @@
<pre><?=$query;?></pre>
<table class="table"> <table class="table">
<tr> <tr>