本文整理汇总了PHP中odbtp_num_fields函数的典型用法代码示例。如果您正苦于以下问题:PHP odbtp_num_fields函数的具体用法?PHP odbtp_num_fields怎么用?PHP odbtp_num_fields使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了odbtp_num_fields函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _initrs
function _initrs()
{
$this->_numOfFields = @odbtp_num_fields($this->_queryID);
if (!($this->_numOfRows = @odbtp_num_rows($this->_queryID)))
$this->_numOfRows = -1;
if ($this->connection->odbc_driver == ODB_DRIVER_JET) {
for ($f = 0; $f < $this->_numOfFields; $f++) {
if (odbtp_field_bindtype($this->_queryID, $f) == ODB_CHAR)
odbtp_bind_field($this->_queryID, $f, ODB_WCHAR);
}
}
}
示例2: _initrs
function _initrs()
{
$this->_numOfFields = @odbtp_num_fields($this->_queryID);
if (!($this->_numOfRows = @odbtp_num_rows($this->_queryID))) {
$this->_numOfRows = -1;
}
if (!$this->connection->_useUnicodeSQL) {
return;
}
if ($this->connection->odbc_driver == ODB_DRIVER_JET) {
if (!@odbtp_get_attr(ODB_ATTR_MAPCHARTOWCHAR, $this->connection->_connectionID)) {
for ($f = 0; $f < $this->_numOfFields; $f++) {
if (@odbtp_field_bindtype($this->_queryID, $f) == ODB_CHAR) {
@odbtp_bind_field($this->_queryID, $f, ODB_WCHAR);
}
}
}
}
}
示例3: _initrs
function _initrs()
{
$this->_numOfFields = @odbtp_num_fields($this->_queryID);
if (!($this->_numOfRows = @odbtp_num_rows($this->_queryID))) {
$this->_numOfRows = -1;
}
}
示例4: _initrs
function _initrs()
{
$this->_numOfRows = -1;
//odbtp_num_rows - odbtp_num_rows -- get number of fetched rows from query ;
$this->_numOfFields = odbtp_num_fields($this->_queryID);
}