本文整理匯總了PHP中odbtp_fetch_assoc函數的典型用法代碼示例。如果您正苦於以下問題:PHP odbtp_fetch_assoc函數的具體用法?PHP odbtp_fetch_assoc怎麽用?PHP odbtp_fetch_assoc使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了odbtp_fetch_assoc函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _fetch_odbtp
function _fetch_odbtp($type = 0)
{
switch ($this->fetchMode) {
case ADODB_FETCH_NUM:
$this->fields = @odbtp_fetch_row($this->_queryID, $type);
break;
case ADODB_FETCH_ASSOC:
$this->fields = @odbtp_fetch_assoc($this->_queryID, $type);
break;
default:
$this->fields = @odbtp_fetch_array($this->_queryID, $type);
}
return is_array($this->fields);
}
示例2: _fetch_odbtp
function _fetch_odbtp($type = 0)
{
switch ($this->fetchMode) {
case ADODB_FETCH_NUM:
$this->fields = @odbtp_fetch_row($this->_queryID, $type);
break;
case ADODB_FETCH_ASSOC:
$this->fields = @odbtp_fetch_assoc($this->_queryID, $type);
break;
default:
$this->fields = @odbtp_fetch_array($this->_queryID, $type);
}
if ($this->databaseType = 'odbtp_vfp') {
if ($this->fields) {
foreach ($this->fields as $k => $v) {
if (strncmp($v, '1899-12-30', 10) == 0) {
$this->fields[$k] = '';
}
}
}
}
return is_array($this->fields);
}