first commit
This commit is contained in:
22
func_get_sitzplatz.php
Normal file
22
func_get_sitzplatz.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
#require_once("config.inc.php");
|
||||
|
||||
|
||||
function get_sitzplatz($nachname, $vorname){
|
||||
|
||||
$db = dbconnect();
|
||||
$query_getplatz = $db->query("SELECT reihe, platz FROM gd_standardsitzplatz WHERE nachname='$nachname' AND vorname='$vorname'");
|
||||
$row_getplatz = $query_getplatz->fetch_array();
|
||||
|
||||
if($row_getplatz['reihe'] != ''){
|
||||
$platz = "$row_getplatz[reihe]|$row_getplatz[platz]";
|
||||
}else{
|
||||
$platz = "|";
|
||||
}
|
||||
|
||||
return $platz;
|
||||
}
|
||||
|
||||
#echo get_sitzplatz('Schwarz', 'Alexander');
|
||||
|
||||
?>
|
Reference in New Issue
Block a user