first commit
This commit is contained in:
31
getSubCat.php
Executable file
31
getSubCat.php
Executable file
@ -0,0 +1,31 @@
|
||||
<?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 lid, land FROM aesp_land WHERE kid LIKE '$kid' 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[bezeichnung]','$row[ukid]'";if($result1[ukid] == $row[ukid]){echo ",'selected'";}echo");\n";
|
||||
|
||||
echo "obj.options[obj.options.length] = new Option('$row[land]','$row[lid]'";if($row[lid] == $lid){echo ",'selected'";}echo");\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user