#30615 [Opn->Fbk]: Fatal error: Call to undefined function: onselect()
| From: | derick@php.net | Date: | Fri, 29 Oct 2004 22:54:44 +0000 |
| Subject: | #30615 [Opn->Fbk]: Fatal error: Call to undefined function: onselect() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68482@lists.php.net to get a copy of this message | ||
ID: 30615
Updated by: derick@php.net
Reported By: dmitryseliv at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: Class/Object related
Operating System: Red Hat Linux
PHP Version: 4.3.9
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2004-10-29 20:05:41] dmitryseliv at yahoo dot com
Description:
------------
Hi! We just upgraded php to 4.3.9 and i'm getting this error message
right now. Code looks fine.
So my guess it's some how related to the upgraded.
Reproduce code:
---------------
function select()
{
$this->onSelect();
$objDB = createDataBase();
$sOrderBy = getValue("order_by", $GLOBALS["Variables"]);
if ($sOrderBy != "")
{
$vtrFieldArray = getValue($sOrderBy, $this->m_vtrFields);
if (gettype($vtrFieldArray) == 'array')
{
$sOrderBy = " order by ".($vtrFieldArray[1])." asc";
}
else
{
$sOrderBy = "";
}
}
$sRequest = "select ";
for ($nCount = 0; $nCount < count($this->m_vtrFields);
++$nCount)
{
if ($nCount != 0)
{
$sRequest .= " , ";
}
$sRequest .= $this->m_vtrFields[$nCount][1];
}
$sRequest .= " from ";
for ($nCount = 0; $nCount < count($this->m_vtrTables);
++$nCount)
{
if ($nCount != 0)
{
$sRequest .= " , ";
}
$sRequest .= $this->m_vtrTables[$nCount];
}
if (($this->m_nID != "") || ($this->m_sWhereClause != ""))
{
$sRequest .= " where ";
}
if ($this->m_nID != "")
{
$sRequest .= " ".$this->m_vtrTables[0].".id=".$this->m_nID;
if ($this->m_sWhereClause != "")
{
$sRequest .= " and ";
}
}
if ($this->m_sGroupClause != "")
{
$sRequest .= $this->m_sGroupClause;
}
$sRequest .= $this->m_sWhereClause;
$sRequest .= $sOrderBy;
$this->m_vtrResultTable = $objDB->execute($sRequest);
}
Actual result:
--------------
Fatal error: Call to undefined function: onselect()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30615&edit=1