query log
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
This commit is contained in:
parent
41e14cdfa0
commit
1dc90e8e36
@ -18,7 +18,8 @@ class Smart extends Page {
|
||||
{
|
||||
$db = new SQLite3(ROOT.DS.'../crawler/data.db');
|
||||
$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 = [];
|
||||
while($row = $res->fetchArray())
|
||||
{
|
||||
@ -26,6 +27,7 @@ class Smart extends Page {
|
||||
}
|
||||
|
||||
$this->set('results', $results);
|
||||
$this->set('query', $query);
|
||||
$this->set('template', 'search.html.php');
|
||||
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
<pre><?=$query;?></pre>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
|
||||
|
Reference in New Issue
Block a user