I have a series of three listboxes. The first one is working, however the next two refuse to update after clicking on the first one!
My table structure is as follows.
tblRestaurants RestID, RestName, RestStatus
tblLocations RestID, LocationID, CityID, AreaID
tblCities CityID, CityName
tblAreas AreaID, AreaName
The first listbox gives the restaurants, the second the given city(s) that they are in, and third the Area(s) of the city they are in.
Here is the main page.....
index.PHP
<?php
try {
$objDb = new PDO('mysql:host=MyHead.db.5513143.hostedresource.com;dbname=MyHead', 'MyHead', 'MenuHead@1234');
$objDb->exec('SET CHARACTER SET utf8');
$sql = "SELECT *
FROM `tblRestaurants`
WHERE `RestStatus` = 'YES'
ORDER BY 'RestName'";
$statement = $objDb->query($sql);
$list = $statement->fetchAll(PDO::FETCH_ASSOC);
} catch(PDOException $e) {
echo 'There was a problem';
}<p>?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Dependable dropdown menu</title>
<meta name="description" content="Dependable dropdown menu" />
<meta name="keywords" content="Dependable dropdown menu" />
<link href="/BigStuff/css/core.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]>
<script src="