PHP Classes

File: combo_box.conf.php

Recommend this page to a friend!
  Classes of Mumi Mania   Combo Box   combo_box.conf.php   Download  
File: combo_box.conf.php
Role: Configuration script
Content type: text/plain
Description: config
Class: Combo Box
Generate HTML form select inputs from MySQL data
Author: By
Last change:
Date: 20 years ago
Size: 2,040 bytes
 

Contents

Class file image Download
<?php
//########################################################################################
//
// -------------- Author
// mumi - 2004
// mumi@ipko.net
//
// 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());

?>