Tuesday, June 14, 2011

Bls: [belajar-access] help gabung access dengan php



maksud abang Access sebagai Backend dan Frontendnya PHP ya bang.
kalau ngak salah koneksinya lewat ODBC bang, terus di php contoh scriptnya seperti ini bang..

<?php
$conn=odbc_connect("dbaccess"," ", " "); // koneksi database ke Ms Access lewat odbc, dbaccess = nama database ,"[user]","[pass]"
if ($conn) {
    $strsql = "SELECT * FROM table1";
    $hasil=odbc_exec($conn, $strsql);
    if ($hasil) {
        echo odbc_result_all($hasil);
    }else{
        echo "Tidak ada dalam tabel!";
    }
}else{
    echo "Database tidak ditemukan!";
}
odbc_close($conn);

?>

maaf ya bang kalau masih ada yang salah maklum newbie, semoga membantu bang..

Salam,
Rully Arfan

Dari: fernandothene <fernandothene@yahoo.com>
Kepada: belajar-access@yahoogroups.com
Terkirim: Sel, 14 Juni, 2011 13:38:34
Judul: [belajar-access] help gabung access dengan php

 

jika ada yg tau gabung access dgn php buat ditampilkan sebagai web tolong ya.. trims



__._,_.___


SPAM IS PROHIBITED



Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

No comments:

Post a Comment