PHP link Access database the easiest way

xiaoxiao2021-03-05  28

$ dbc = new com ("adoDb.connection");

$ dbc-> open ("driver = Microsoft Access Driver (* .mdb); dbq = c: /member.mdb");

$ r = $ dbc-> execute ("Select * from tablename);

$ I = 0;

While (! $ r-> eof) {

$ i = 1

$ fld0 = $ r -> fields ["username"];

$ fld0 = $ r-> fields ["password"];

....

Echo "$ fld0-> value $ fld1-> value ....";

$ r-> movelnext ();

}

$ r-> close ();

?>

转载请注明原文地址:https://www.9cbs.com/read-35299.html

New Post(0)