Creating Dynamic Combobox With PHP and Javascript

Now I want to share about how to create dynamic combobox with javascript and PHP version of me. Basically a PHP script utilizes cookies to query the database. Because I have not been able to create a web-based ajax, so I manipulate the javascript function combined with PHP.
First we create the database tables in advance
CREATE  TABLE  `barang`.`barang` ( 
`id` VARCHAR( 20  )  NOT  NULL , 
`nama` VARCHAR( 20  )  NOT  NULL , 
`merk` VARCHAR( 20  )  NOT  NULL , 
`harga` INT( 11  )  NOT  NULL , 
PRIMARY  KEY (  `id`  ) 
);
For example I input the following data
INSERT INTO `barang` VALUES ('b01', 'Kaos', 'Merk01', '5000');
INSERT INTO `barang` VALUES ('b02', 'Kemeja', 'Merk02', '10000');
INSERT INTO `barang` VALUES ('b03', 'Celana', 'Merk03', '15000');
then we create a PHP file
konek.php
//host database
$dbhost = "nama_hos";
//User Database
$dbuser = "username";
//Password Database
$dbpswd = "password";
//Database name
$dbname = "nama_database";
mysql_connect($dbhost, $dbuser, $dbpswd);
mysql_select_db($dbname); 
combobox.php
include 'konek.php';
echo"
";
$cookie = $_COOKIE['barang'];
$query = mysql_query("SELECT * FROM barang ORDER BY id");
echo"
Nama Barang
"; $query_barang = mysql_query("SELECT * FROM barang WHERE id = '".$cookie."'"); $rows = mysql_num_rows($query_barang); $data_barang = mysql_fetch_array($query_barang); $harga = number_format($data_barang['harga'], 0, ',', '.'); if($rows>0){ echo"
".$data_barang['nama']."".$data_barang['merk']."Rp. ".$harga."
"; }else{ echo"
Silahkan Pilih Nama Barang
"; } 
see other on my site

Networking Hardware

To build a network of computers, there are some important things and is a mandatory requirement that we provide. These components are lucky Hardware Hardware or building a computer network.

NIC (Network Interface Card)
LAN card or cards are installed on each computer that will be connected to a computer network. Many types and brands of network adapters are available on the market, but some basic things you need to know what kind of PCI or ISA network card with speeds of 10 Mbps or 10/100, should be adapted to the type of Ethernet switch or hub will be used, the type of protocol types, and the cable supports not only the quality of the product was also excluded. New type of computer is also equipped with ISA slots on board network interface is generally a system of meaning that has been available on the motherboard, so no need to install Lan CardSesuai with large levels of demand for computer networks, many new types of computer motherboard has on-board network card. Good quality, but the author believes it is better to use a separate network card. One advantage is that you can choose a particular brand and easily replaced if damage occurs.Hub (Concentrator)
The hub is a network device that consists of many ports to connect the node or point to form an interconnected network in star topology. If the number of ports available is not sufficient to connect all computers to be connected in one network can be used several hubs that are connected in an up-link.

Port is usually available until the 8th, 16, 24 or more to suit your needs. for speed, you can use 10 or 10/100 Switch HUB. We recommend using a 10/100, it can be used for speeds up to 10 or 100. Hub supports pemggunaan support their coaxial cables, UTP bus topology that supports star topology. But the latter type tend to provide only support for the use of UTP cable.
Repeater
Almost equivalent to the hub, repeater used only on BUS topology of the network.
Access Point
As with the hub and Repearter Access Point (AP) is a device that connects between computers on the network with the media of radio waves, which distinguishes between these three devices are intermediaries Topology and media.Brige
Bridge used to connect between the networks that have the same protocol. The end result is a single logical network. Bridge can also be used in networks that have different physical media. Examples of networks that use fiber network using obtik with coacial. Bridge study destination addresses are passed and directed traffic to a destination. Also used to isolate the network. If the network is slowed by traffic management, the network can be divided into two smaller units.
Switch
Bridge is a development of the concept. There are two basic architectures that are used on the switch, or cut-through and store and forward. Switch cut-through has the advantage of the speed of hand because when a packet arrives, the transition into account only the destination address before being sent to tijuannya segments, while the store and forward switches is the opposite. These switches receive and consider the entire contents of the package before it transmits to the destination and to check the package needs more time, but this process enables the switch to know the damage and prevent the data packets so as not to disturb the network. Inside the switch there are some advantages because all segments of the network has a bandwidth of 10 Mbps full. Not divided like to share the network to use the Hub.
VDSL
VDSL (Very high-bit-rate Digital Subscriber Line Port) is a tool or device that is used as a converter of UTP cable (RJ45) to a telephone cable (RJ11). In this case, if you connect a LAN or Intranet through the buildings that were about 500 meters is possible with the 'addition of this device VDSL. The problem of speed of data transfer depends on the brand used by VDSL. Even to this moment began to circulate on the market many types of VDSL that the speed can be adjusted as desired (manageable)Cable
There are different types (type) cable is widely used and has become standard in use for data communication in computer networks. These cables must be tested before feasibility before being marketed and used. Each type of cable has the ability and their specifications are different, why did the introduction of cable types. There are two types of cables that are widely known and often used for LAN, which is coaxial and the pair (UTP and STP shielded twisted pair unshielded twisted pair). 

Twisted Pair Cable
In addition to the coaxial cable, Ethernet cable can also use another type that is UTP (Unshielded Twisted Pair) and shielded twisted pair (STP). UTP or STP cable used is composed of 4 pairs of twisted wires. Of the 8 pieces of existing wires in this cable, only used 4 pieces that used to be able to send and receive data (Ethernet). Other devices for the use of this type of cable is an RJ-45 and the hub.

Coaxial Cable
Known two types of coaxial cable used for computer networks, namely:
  • Thick coax and
  • Thin coax.
Thick coaxial cable
Keep in mind that almost 85% of faults that occur on a computer network because of an error in the use of media, including cables and connectors, as well as quality installations. Other errors can be caused by technical factors and conditions around.

Coaxial cable of this type is specified based on the IEEE-802, 3 10Base5, which cable has a diameter of 12mm. These cables are often commonly referred to as Ethernet or standard Ethernet, or simply shortened thicknet, or just shown as yellow because the yellow cable coaxial cable.Thin

Type of coaxial cable is widely used among amateur radio operators, in particular for transceivers that do not require a large power. This type is widely used RG-8 or RG-59 with an impedance of 75 ohms. Type of cable television for the type 75 ohm coax.

But for the network device, the type of coaxial cable is used (RG-58), who met the standard IEEE 802.3 - 10Base2, where an average diameter ranging from 5 mm and usually black. Each device (device) is connected with a BNC T-connector. The type of cable is also known as thin Ethernet or thinnet.
Fiber Optic (FO)
Networks using the F / O is very rare. Usually only large companies that use the network with the average F / O. Since the price is relatively expensive and more difficult installation process.
However, networks that use the F / O, in terms of reliability and speed of any doubt. Average speed data transmission with F / O is greater than 100 Mbps and be free from environmental influences (noise).

Who The Next Dream Theater Drummer???

Actually, this news has been out, but as one of the millions of fans of Dream Theater I do not feel good read the announcement issued by Mike Portnoy.
For all fans of Dream Theater would have known the name of Mike Portnoy ...?
Of course we already know that Mike Portnoy is one of frontman and founder of Dream Theater, this also makes us feel a little shocked and did not believe that MP plans to come out and join the A7X. How could a Mike Portnoy Dream Theater could leave and decided to join the A7X?
Heard this rumor I finally decided to surfing on the internet. And in an instant Google also provides links that make me feel a little relieved but still im felt can't  accept this reality. In the statement of MP, he stated that in the first MP to think over the past 20 years he lived in the world of music, after 20 years was he felt that he needed a break and plan to invite personnel DT to break or a break from the music world for a moment, but it turns out this plan opposed by personnel and personnel DT DT stated that Dream Theater will still drive even without Mike Portnoy.
Although Mike Portnoy stated that he feels very nice to do projects together Hail, Transatlantic and Avenged Sevenfold but MP explicitly states that he was not planning to come out and only a short break, and will not let go of Dream Theater that had been regarded as a child during this fosterage forever 20 years.
One thing that makes me glad that Gossip MP will be joining A7X are untrue, but what about the other DT personnel?
Whether they will seek a temporary replacement or completely replace the MP?
i hope not!
Dream Theater without Mike Portnoy?
T_T