include("zpd.yy");
?>
mysql_connect($db_host,$db_user,$db_pass) or die("Could not connect to MySQL (Main connection)");
mysql_select_db($db_database) or die("Could not connect to database (Main connection)");
function dual_linked_select(
$table, // Table to create linked selects from
$table_column_01, // Root category
$table_column_02, // Subcategory of the root category
$group_02_default_option_text) // Default option text for the group 2 select
{
// Define globals
global $javascript;
global $group_01_options;
// Define variables
$javascript = null; // Hold
$group_01_options = null;//Hold
// Assembly of Javascript starts
$javascript .=<<'.$group_01[$table_column_01].''."\r\n";
$javascript .=<<
// execute dual_linked_selects_function
dual_linked_select('fietsroutes','gemeente','type','Select...');
?>
Dual Linked Selects with PHP and MYSQL (without page reload) fietsroutes zoeken