Initial commit
This commit is contained in:
23
getSubCat.php
Normal file
23
getSubCat.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
require("config/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$lid = $_COOKIE["ck_lid"];
|
||||
$ukid = $_COOKIE["ck_ukid"];
|
||||
$kid=$_GET['countryCode'];
|
||||
|
||||
$db = dbconnect();
|
||||
$query = "SELECT ukid, bezeichnung FROM unterkategorie WHERE kid='$kid' ORDER BY bezeichnung ASC";
|
||||
$result = $db->query( $query);
|
||||
|
||||
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[bezeichnung]','$row[ukid]'";if($row[ukid] == $ukid){echo ",'selected'";}echo");\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user