DBMaker Starting Guides

PHP Samples

These samples assume that the php files found in the subdirectories below are available to the php-aware HTTP server that is to be tested.

DBMaker basic function

Description
     DBMaker basic function test. Run

DBMaker Poll System

Description
     A sample network poll system implemented by PHP. Run

Registration System

Description
     Here demostrates a software registration system. Run

Set autocommit on/off

Description
    Set autocommit on/off by odbc_autocommit().

Source
     odbc_autocommit.php  Run

Close all connections

Description
    Close all connections.

Source
     odbc_close_all.php  Run

Commit/Rollback transactions

Description
    Commit or rollback a transaction.

Source
     odbc_commit.php  Run

Use Cursors

Description
    Updating and deleting by two cursors.

Source
     odbc_cursor.php  Run

Execute a statement

Description
    Prepare and execute a statement.

Source
     odbc_execute.php  Run

Fetch result

Description
    Fetch data from result sets.

Source
     odbc_fetch.php  Run

Show images from database

Description
    Get a image from database and show it on a web page.

Source
     odbc_longbinary.php  display1.php  Run

The number of rows affected

Description
    Get the number of rows be inserted/updated/deleted/selected.

Source
     odbc_num_rows.php  Run

Get all result at a time

Description
    Get all tuples in a result set at a time.

Source
     odbc_result_all.php  Run

Connect to database

Description
     Open a connect to the database by odbc_connect(). The connection will be closed by odbc_close() or odbc_close_all().

Source
     odbc_connect.php  Run

Persistent Connections

Description
     Establish a persistent connection to the database. This connection will not be closed by odbc_close() and odbc_close_all(), and will be reused when you open another connection. You can close it by restarting the Apache server.

Source
     odbc_pconnect.php  Run