Location: PHPKode > scripts > Combo Box > combo-box/combo_box.conf.php
<?php
//########################################################################################
//
// -------------- Author
// mumi - 2004
// hide@address.com
//
// Have fun !!!
//
//########################################################################################
$host   		= "localhost";
$dbusername = "root";
$dbpassword = "";
$dbname			= "";

/*
CREATE TABLE qyteti (
qyteti_id int(4) NOT NULL auto_increment,
qyteti_name varchar(25) default NULL,
PRIMARY KEY  (BranchID)
);
INSERT INTO qyteti VALUES (1, 'Gjakovë');
INSERT INTO qyteti VALUES (2, 'Pejë');
INSERT INTO qyteti VALUES (3, 'Prizren');
INSERT INTO qyteti VALUES (4, 'Prishtinë');
INSERT INTO qyteti VALUES (5, 'Ferizaj');
INSERT INTO qyteti VALUES (6, 'Mitrovicë');
INSERT INTO qyteti VALUES (7, 'Gjilan');
INSERT INTO qyteti VALUES (8, 'Besianë');
INSERT INTO qyteti VALUES (9, 'Drenas');
INSERT INTO qyteti VALUES (10, 'Skenderaj');
INSERT INTO qyteti VALUES (11, 'Malishevë');
INSERT INTO qyteti VALUES (12, 'Rahovec');
INSERT INTO qyteti VALUES (13, 'Burim');
INSERT INTO qyteti VALUES (14, 'Klinë');
INSERT INTO qyteti VALUES (15, 'Lypjan');
INSERT INTO qyteti VALUES (16, 'Shtime');
INSERT INTO qyteti VALUES (17, 'Therandë');
INSERT INTO qyteti VALUES (18, 'Dragash');
INSERT INTO qyteti VALUES (19, 'Albanik');
INSERT INTO qyteti VALUES (20, 'Vushtrri');
INSERT INTO qyteti VALUES (21, 'Zveçan');
INSERT INTO qyteti VALUES (22, 'Kaçanik');
INSERT INTO qyteti VALUES (23, 'Fushë Kosovë');
INSERT INTO qyteti VALUES (24, 'Kastriot');
INSERT INTO qyteti VALUES (25, 'Viti');
INSERT INTO qyteti VALUES (26, 'Deçan');
INSERT INTO qyteti VALUES (27, 'Artana');
INSERT INTO qyteti VALUES (28, 'Dardana');
INSERT INTO qyteti VALUES (29, 'Shtërpce');
INSERT INTO qyteti VALUES (30, 'Zubinpotok');
INSERT INTO qyteti VALUES (35, '[Other ]');
*/
if (!mysql_connect($host, $dbusername, $dbpassword)){
	displayErrorPage("Cannot connect to ".$host."!");
	exit;
}
@mysql_select_db($dbname) or die (mysql_error());

?>
Return current item: Combo Box