Files
images
_class.php
admin_del.php
adminrechte.php
ansicht.php
fragebogen.htm
fragebogen.php
fragebogen_del.php
getSubCat_search.php
get_land.php
hauptframe.htm
hauptframe.php
index.php
index.php__
index_db.php
jquery-3.4.1.min.js
logout.php
menuframe.php
neuanlage.php
styles_pc.css
suche.php
topframe.php
Fragebogen/getSubCat_search.php
2023-02-23 10:53:04 +01:00

35 lines
1.0 KiB
PHP
Executable File

<?php
include("aespa/datenbankanbindung.php"); // f&uuml;gt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
header("Content-Type: text/html;charset=utf-8");
$lid = $_COOKIE["ck_lid"];
$kid=$_GET['countryCode'];
$db = dbconnect();
$query = "SELECT distinct a.lid, a.land
FROM aesp_land a, aesp_bewerbung b
WHERE kid LIKE '$kid'
AND a.lid = b.land
ORDER BY land ASC";
$result = $db->query ($query);
##$query1 = $db->query("SELECT ukid FROM quelle WHERE lid='$lid'");
##$result1 = $query1->fetch_array();
if(isset($_GET['countryCode'])){
echo "obj.options[obj.options.length] = new Option('Alle','%');\n";
while ($row = $result->fetch_array()){
#echo "obj.options[obj.options.length] = new Option('$row[land]','$row[lid]'";if($row[lid] == $lid){echo ",'selected'";}echo");\n";
echo "obj.options[obj.options.length] = new Option('$row[land]','$row[lid]');\n";
}
}
?>