first commit
This commit is contained in:
24
func_standard_hs.php
Executable file
24
func_standard_hs.php
Executable file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
#require_once("config.inc.php");
|
||||
|
||||
|
||||
function standard_hs($plz){
|
||||
|
||||
$db = dbconnect();
|
||||
$query_hs = $db->query("SELECT hs
|
||||
FROM bpm_zuordnung_hs
|
||||
WHERE plz = '$plz'
|
||||
LIMIT 1");
|
||||
$row_hs = $query_hs->fetch_array();
|
||||
|
||||
if($row_hs['hs'] == ''){
|
||||
$hochschule = 'NA';
|
||||
}else{
|
||||
$hochschule = $row_hs['hs'];
|
||||
}
|
||||
return $hochschule;
|
||||
}
|
||||
|
||||
#echo standard_hs(88812);
|
||||
|
||||
?>
|
Reference in New Issue
Block a user