Database Management Code Constructing Web View

In fact several paddy field areas in Karawang are still potential for drought vulnerability. Generally, areas suffer from drought vulnerability are located farthest from main irrigation channel and it is included in group V for watering. Based on field information there are three main causes of drought i.e.: 1. Water flows especially during dry season gadu cannot reach the paddy field area located farthest from main irrigation channel. 2. Irregular planting pattern that is in appropriate with watering classification of paddy field. 3. Irrigation infrastructure damage. Principally irrigation water is aimed to reduce discrepancy water supply during rainy and dry seasons. Inefficient use of water especially by farmers at the upper course near main irrigation channel causes difficulties for paddy fields located at the lower course to obtain water. The motivation factors are disobedience to planting time of appropriate classification of paddy field; inefficient water use that is allocated for other paddy field classification and infrastructure damage. Therefore, government involvement to prevent problems by repairing infrastructure and improving farmer knowledge about the importance of water distribution should be done. It is expected to minimize paddy field areas in Karawang district suffering from drought vulnerability as Karawang is one of the rice barns in Indonesia.

4.2. Web Development

4.2.1. Database Management

Database management software used for this system is MySQL 4.0.18 and this software has high capacity of storing data based on the operation system Window OS-32 bit and capacity is 4 GB. The logical design is a file that defines the basic organization of database. A data dictionary is a computer based catalog or dictionary containing metadata, which is data about data. A data dictionary includes a software component to manage database of data definition that is metadata about the structure. A data dictionary contains a list of all files in the database, the number of records in each file, and the names and types of each field. Most database management systems keep the data dictionary hidden from 57 users to prevent them from accidentally destroying its contents. Data dictionary do not contain any actual data from the database only the administrator could be authorized to manage it. Physical data model takes view of the data that describes how the data are to be physically stored and accessed on the storage devices of a computer system. For web-based GIS Drought Indicator system, phpMyAdmin 2.6.0 and MySQL 4.0.18 are used to develop a physical database design. Figure 19. Physical database using phpMyAdmin environment.

4.2.2. Code Constructing

Web page is created by PHP coding programming language. PHP Script can be written by using Macromedia Dreamweaver MX 2004 software. PHP is scripting language which is integrated into HTML page and it can run in server side. All the PHP syntax coded will be fully run in the server.

4.2.3. Web View

One of the main objectives of the thesis is to provide an easy to use interface that can be operated by a non-technical user. The interface is mainly menu driven, making it very easy to use. All the menu options are given appropriate, so that a novice computer user can use the system Figure 20. The demonstration of the basic features is available at http:adi.harry.or.id 58 M a i n M e n u Figure 20. Main interface of drought indicator at Karawang district From main menu the user can very easily select all information on theory about drought indicator, map from Web GIS, and other tools. Most of the commonly used menu option are provided as tools on a separate tool bar and can be used by clicking on the appropriate tool in the main menu. When the user clicks on a particular tool, new information is displayed in the same window.

4.2.4. Spatial Information from WEB GIS