Recent changes

2013-04-14 2013-04-02 2013-02-17 2013-01-29 2013-01-20 2013-01-18 2012-12-08 2012-11-06 2012-09-04 2012-08-02

php/pear/DB



抽象データベースレイヤー。PEAR界では、PEAR::DBは非推奨。MDB2を使うようにと言われている。

Introduction - autoPrepare & autoExecute

autoPrepar

<php> <?php // Once you have a valid DB object named $db... $table_name = 'user'; $table_fields = array('id', 'name', 'country');

$sth = $db->autoPrepare($table_name, $table_fields,

                       DB_AUTOQUERY_INSERT);

if (PEAR::isError($sth)) {

   die($sth->getMessage());

}

$table_values = array(1, 'Fabien', 'France');

$res =& $db->execute($sth, $table_values);

if (PEAR::isError($res)) {

   die($res->getMessage());

} ?> </php>

DB-1.7.4

Information

Version:1.7.4

Changelog

  • mssql: * Fix tableInfo() so flags are returned. Bug 3691.
    • mssqlのtableinfo()を修正

関連リンク