Yang Mau Belajar PHP & MySQL Kumpul disini

Discussion in 'Programming & Reverse Engineering' started by djobcomcell, Apr 26, 2010.

  1. djobcomcell

    djobcomcell Well-Known Member

    Messages:
    261
    Likes Received:
    246
    Trophy Points:
    53
    Hanya berbagi ilmu sedikit tetang PHP & MySQL

    Bagi senior yang sudah mengerti ikutan nyumbang yah... tapi jangan hasil Copas (copy paste)

    Siapa yang mau ikutan...:clap:
     
  2. djobcomcell

    djobcomcell Well-Known Member

    Messages:
    261
    Likes Received:
    246
    Trophy Points:
    53
    Kode Koneksi Database MySQL
    Code:
    <?php
    mysql_connect("localhost", "username", "password") or die ("Koneksi tidak berhasil!, Periksa pengaturan");
    mysql_select_db("namadatabase");
    ?>
    
    Keterangan :

    localhost = alamat hostnya database, biasanya localhost.
    username = username hostnya.
    password = password hostnya.
    namadatabase = sudah pasti nama databasenya

    nb: untuk or die ("Koneksi tidak berhasil!, Periksa pengaturan"); pesan yang muncul pada saat koneksi kedatabase tidak berhasil...
     
  3. jimbluk

    jimbluk New Member

    Messages:
    149
    Likes Received:
    16
    Trophy Points:
    0
    Ikutan belajar Om :thumb: :clap:
     
  4. empiss

    empiss Active Member

    Messages:
    182
    Likes Received:
    12
    Trophy Points:
    28
    Ikutan Belajar Om

    Tahap demi Tahap mulai dr software apa saja yg harus di instal

    Maaf orang AWAM pengen Belajar
     
  5. djobcomcell

    djobcomcell Well-Known Member

    Messages:
    261
    Likes Received:
    246
    Trophy Points:
    53
  6. djobcomcell

    djobcomcell Well-Known Member

    Messages:
    261
    Likes Received:
    246
    Trophy Points:
    53
    sory bau online lagi... maklum lagi project bikin CMS sendiri... kalo mau lihat hasilnya silahkan ke AWP-Slankers

    Materi sedang dikumpulkan... biar enak uploadnya
     

Share This Page