memorry error
Posted: Fri Sep 25, 2009 7:26 am
hi i am new in php currently working on orange hrm open source software,last i have configured and installed orange hrm and apachi software but get error when i run software is "C:\wamp\www\orangehrm-2.4.2\lib\models\hrfunct\EmpLicenses.php on line 313" i dont know why it saying me that and code behin there is like this
function getAssEmpLicenses($getID) {
$this->getID = $getID;
$tableName = 'HS_HR_EMP_LICENSES';
$arrFieldList[0] = 'EMP_NUMBER';
$arrFieldList[1] = 'LICENSES_CODE';
$arrFieldList[2] = 'LICENSES_DATE';
$arrFieldList[3] = 'LICENSES_RENEWAL_DATE';
$sql_builder = new SQLQBuilder();
$sql_builder->table_name = $tableName;
$sql_builder->flg_select = 'true';
$sql_builder->arr_select = $arrFieldList;
$sqlQString = $sql_builder->selectOneRecordFiltered($this->getID);
//echo $sqlQString;
$dbConnection = new DMLFunctions();
$message2 = $dbConnection -> executeQuery($sqlQString); //Calling the addData() function
$i=0;
while ($line = mysql_fetch_array($message2, MYSQL_NUM)) {
for($c=0;count($arrFieldList)>$c;$c++)
$arrayDispList[$i][$c] = $line[$c];
$i++;
}
if (isset($arrayDispList)) {
return $arrayDispList;
} else {
$arrayDispList = '';
return $arrayDispList;
}
}
plz help me out
function getAssEmpLicenses($getID) {
$this->getID = $getID;
$tableName = 'HS_HR_EMP_LICENSES';
$arrFieldList[0] = 'EMP_NUMBER';
$arrFieldList[1] = 'LICENSES_CODE';
$arrFieldList[2] = 'LICENSES_DATE';
$arrFieldList[3] = 'LICENSES_RENEWAL_DATE';
$sql_builder = new SQLQBuilder();
$sql_builder->table_name = $tableName;
$sql_builder->flg_select = 'true';
$sql_builder->arr_select = $arrFieldList;
$sqlQString = $sql_builder->selectOneRecordFiltered($this->getID);
//echo $sqlQString;
$dbConnection = new DMLFunctions();
$message2 = $dbConnection -> executeQuery($sqlQString); //Calling the addData() function
$i=0;
while ($line = mysql_fetch_array($message2, MYSQL_NUM)) {
for($c=0;count($arrFieldList)>$c;$c++)
$arrayDispList[$i][$c] = $line[$c];
$i++;
}
if (isset($arrayDispList)) {
return $arrayDispList;
} else {
$arrayDispList = '';
return $arrayDispList;
}
}
plz help me out