first commit
This commit is contained in:
34
getSubCat_search.php
Executable file
34
getSubCat_search.php
Executable file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
include("aespa/datenbankanbindung.php"); // fü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";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user