本文整理汇总了PHP中ora_numcols函数的典型用法代码示例。如果您正苦于以下问题:PHP ora_numcols函数的具体用法?PHP ora_numcols怎么用?PHP ora_numcols使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ora_numcols函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: query
function query($SQLCmd)
{
if (!$this->isConnect) {
return null;
}
$cursor = ora_open($this->connection);
ora_parse($cursor, $SQLCmd);
ora_exec($cursor);
$results = array();
$resultName = array();
for ($i = 0; $i < ora_numcols($cursor); $i++) {
$resultName[$i] = ora_columnname($cursor, $i);
}
$cnt = 0;
while (ora_fetch($cursor)) {
for ($i = 0; $i < ora_numcols($cursor); $i++) {
$results[$resultName[$i]][$cnt] = ora_getcolumn($cursor, $i);
}
$cnt++;
}
$rs = new ResultSet();
$rs->setHolder($results);
ora_close($cursor);
return $rs;
}
示例2: _initrs
function _initrs()
{
$this->_numOfRows = -1;
$this->_numOfFields = @ora_numcols($this->_queryID);
}
示例3: ora_open
$pdf->SetFont('Arial', '', 8);
/*$pdf->AddPage();
$pdf->BasicTable($header,$data);
$pdf->AddPage();
$pdf->ImprovedTable($header,$data);*/
/* *************************
***************************
*/
$isql = "select SGD_RENV_CODIGO, \n\t\t SGD_FENV_CODIGO, \n\t\t SGD_RENV_FECH,\n\t\t SGD_RENV_FECH, \n\t\t RADI_NUME_SAL, \n\t\t SGD_RENV_DESTINO, \n\t\t SGD_RENV_TELEFONO, \n\t\t SGD_RENV_MAIL, \n\t\t SGD_RENV_PESO, \n\t\t SGD_RENV_VALOR, \n\t\t SGD_RENV_CERTIFICADO, \n\t\t SGD_RENV_ESTADO, \n\t\t USUA_DOC from SGD_RENV_REGENVIO ";
include "../config.php";
$cursor = ora_open($handle);
$resultado = ora_parse($cursor, $isql);
$resultado = ora_exec($cursor);
$line = 0;
$data = array();
$numCols = ora_numcols($cursor);
while (ora_fetch($cursor)) {
$line = "";
for ($i = 0; $i < $numCols; $i++) {
if ($i >= 1) {
$line .= ";";
}
$line .= ora_getcolumn($cursor, $i);
}
// echo $line . "<br>";
$data[] = explode(';', chop($line));
}
$pdf->AddPage();
$pdf->FancyTable($header, $data, $w);
$arpdf_tmp = "../rad_salida/tmp_pdf/22l_jhlc.pdf";
$pdf->Output($arpdf_tmp);