How to create Database model with Power Designer

Actually, there are some software to create database model, for example Power Designer, ERWin, Toad data modeler, Microsoft Visio and etc . But I think after compared, power designer is the best. Why it is the best,it have good visualization and easy to modify about entity and relationship between entity. This tools have the good about easy to generate figure and sql script. You just choose kind of database, and it generated.

Sybase as developer this software have shared trial edition as long 15 days. you can download in http://download.sybase.com/eval/PowerDesigner/powerdesigner125_eval.exe. after that install into your PC, very easy to install because you just click next and next, very standard of windows software installation.

11.jpg

On this software you will know about :

a. Entity, entity is an object on system have some attribute or specification and it have relationship and activity doing in the system. Example : on schools system, teacher, student is an entity. symbol of attribute on Power designer is 2.jpg

b. Attribute, attribute is some specification and detailed spec of entity. for example Teacher have attributes : Name, teacher id, sex and etc.

3.jpg

c. Relationship, connectivity of between 2 entities

5.jpg

Home Management Software

Home Management Software

Users :

  • Mother
  • Father
  • Childred
  • Administrator
  • Guess
  • Admin

Fasilitas :

  • Chating/messaging with neighbor
  • Chating/messaging with member family
  • Sharing in forum
  • Entry the best menu of family
  • Entry common menu
  • Maintain in/out of money
  • Reporting begin and end of month
  • Optimize and annalist outgoing payment
  • Inventory system in house
  • Maintain planning family plan

Kind of software : Open source

Development system :

  • Developer : PHP
  • Tools : Macromedia Dreamweaver
  • Database : MySQL

Aplikasi Lucky Draw McDermott (developed by Pak Doni)

Aplikasi dibuat atas permintaan Pimpinan proyek untuk melakukan pengundian kepada semua employee project.Program yang dibuat cukup simple saja, dengan teknologi MS Visual Basic 6.0 dan Database MS Access. Tetapi fitur dan utilitisnya lumayan komplit, cukup user friendly dan terdiri dari audio dan visual.

Utilities yang disediakan :

  • Form untuk drawingnya, ini untuk menunjukkan kepada khalayak proses pengundian dengan trigger satu tombol yang diklik manual.
  • Form viewing pemenang, form untuk menampilkan pemenang hasil pengundian.

Tetapi beberapa kekurangannya adalah sebagai berikut :

  • Dinamis, aplikasi itu masih belum bisa dinamis, tidak adanya mode option dalam program sehingga jika ada schedule lucky draw, maka beliau akan melakukan rebuilding lagi dimenu - menu : Hadiah, jumlah hadiah, setting suara hadiah.
  • Hardcoding, teknik harcoding adalah sebuah scope if/switching pada sebuah kondisi tertentu yang akan menjalankan sebuah perintah yang diinginkan. Teknik ini pasti akan direbuilding jika software kemungkinan besar akan bertambag atau berubah setting. Dan itu sangat mungkin di kasus skarang ini.
  • Design dan Documentation, design dari software ini mungkin hanya sebatas penerawangan saja, jadi jika ada orang yang pengen ngembangin, dia harus belajar dulu dari si pembuat pertama, serta dokumen pendukung pembuatan software ini belum dibuat.

Opini yang harus dibangun dalam membuat software meskipun kecil kudu berpatokan beberapa prinsip : Dinamis, Jangan Hardcode dan dokumentasi yang bagus.

OCI and Ora for Database Oracle and PHP

Anda pasti kenal Oracle, database paling bandel. Dan PHP web programming, program paling gampang dan mudah dipelajari. Ciri khas PHP adalah program berbasis fungsi. Untuk membuat koneksi PHP dengan database Oracle, PHP telah menyediakan beberapa fungsi yang tersedia di dalam komponen. Berikut step by step cara untuk melakukan setup :

  1. Buka file di Path PHP/PHP.INI, file ini adalah setting applikasi php, tentang komponen apa aja yang enable dan disable, setting timeout dll. Coba anda cek dulu webserver anda. Coba cari file di dalam path PATH_PATH/php/php.ini. Buka file itu dan cari kata dengan “ORA” atau “OCI”, jika ketemu coba cek.Hilangkan tanda “;” di depan kata extention=php_oci8.dll, php_oci8.dll adalah komponen untuk menghandle koneksi transaksi database PHP dengan oracle. Path PHP.INIComponent
  2. Cek apakah sudah komponen available dengan perintah <?=phpinfo()?>, tuliskan satu baris ini di sebuah file dot php kemudian running dengan browser.

  3. Fungsi - Fungsi Primer Oracle Database di PHP, berikut fungsi - fungsi under oci untuk melakukan transaksi command ke oracle :
    1. ocilogon($username,$passwd[,$db]), fungsi ini untuk melakukan koneksi ke server, pada umumnya fungsi ini diletakkan di atas coding sebuah page, sehingga perintah2 oracle di bawahnya menggunakan resource koneksi itu.
    2. ocilogoff(), untuk memutuskan koneksi database
    3. ocierror(), untuk menangkap error yang dilempar oleh oracle atas perintah sebelumnya.
    4. ociparse($conn, $query), fungsi ini adalah untuk melakukan eksekusi sebuah perintah QUERY, return value dari fungsi ini adalah sebuah recordset atau biasa dikenal statement.
    5. ociexecute($statement), fungsi ini untuk melakukan eksekusi sebuah statement hasil dari ociparse.
  4. Membuat Koneksi dengan Database Server
  5. Melakukan Query
  6. Retrieve Data

 

ODBC Connection with PHP

ODBC (Open Database Connectivity) is group of database driver which have been registered in the Windows. Sometimes when you install DBMS (ex : Microsoft Access, etc) installer include driver for ODBC. If you want to show what driver has been installed on you computer, you can Click Start->Run, please type : ODBCAD32 on textbox.

odbcad32.jpg

112.jpg

After that it will show a window, please open tab “Drivers”. So you can create connectivity based on list. ODBC can reduce requirement of function each database, because in PHP each database can have difference function.

CREATE Connection Class

Connection string maybe same with connection string on windows programming. Driver={SQL Server};Server=”.$ser.”;Database=”.$db,$user,$pass. Function odbc_connect for create connection with database. So we don’t scare if you will develop program with PHP and non mySQL.

class {

    function create_connection() {

        $ser=”LOCALMACHINE”; #the name of the SQL Server
$db=”mydatabase”; #the name of the database
$user=”myusername”; #a valid username
$pass=”my pass”; #a password for the username# one line
$conn=odbc_connect(”Driver={SQL Server};Server=”.$ser.”;Database=”.$db,$user,$pass);