Hi! We just upgraged to PHP 4.3.9 and experience some code functionality problems. Which does not make any sense.
Fatal error: Call to undefined function: onselect()
Does anybody experienced something like that and what could cause something this problem?
This is how the function looks like
============================================================
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);
}
==========================================================
Thank a lot
Fatal error: Call to undefined function: onselect()
Does anybody experienced something like that and what could cause something this problem?
This is how the function looks like
============================================================
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);
}
==========================================================
Thank a lot