mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
This commit is contained in:
@@ -631,12 +631,13 @@ if($vorname!='' && $nachname!='')
|
||||
{
|
||||
if($where!='')
|
||||
$where.=' OR';
|
||||
$where.=" (LOWER(vorname)='".strtolower($vorname)."' AND LOWER(nachname)='".strtolower($nachname)."')";
|
||||
$where.=" (LOWER(vorname)=LOWER('".$vorname."') AND LOWER(nachname)=LOWER('".$nachname."'))";
|
||||
}
|
||||
|
||||
if($where!='')
|
||||
{
|
||||
$qry = "SELECT * FROM public.tbl_person WHERE $where ORDER BY nachname, vorname, gebdatum";
|
||||
|
||||
if($result = pg_query($conn, $qry))
|
||||
{
|
||||
echo '<table><tr><th></th><th>Nachname</th><th>Vorname</th><th>GebDatum</th><th>SVNR</th><th>Geschlecht</th><th>Adresse</th></tr>';
|
||||
|
||||
Reference in New Issue
Block a user