Initial commit
This commit is contained in:
17
livesearch.php
Normal file
17
livesearch.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require("config/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$db = dbconnect();
|
||||
|
||||
if(isset($_GET['getWord']) && isset($_GET['letters'])){
|
||||
$letters = $_GET['letters'];
|
||||
#$letters = preg_replace("/[^a-z0-9 ]/si","",$letters);
|
||||
$query1 = "select distinct textstelle from quelle where textstelle like '%".$letters."%' ORDER BY txt_anz_buch, txt_buch, txt_kapitel, txt_vers";
|
||||
$res = $db->query( $query1);
|
||||
|
||||
#echo "1";
|
||||
|
||||
while ($inf = $res->fetch_array()){
|
||||
echo $inf["textstelle"]."|";
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user