我需要从登录用户那里获取 sso(员工编号)号码才能完成查询,但它告诉我第 12 行有错误,我无法弄清楚问题有人可以帮助我吗?
include_once('../../include/config.inc.php');
session_start();
if($_SESSION['utype']=='Manager'){
//Se buscan todos los datos de los empleados q pertenecen a el área lidereada por el usuario
//Se extrae el id del jefe
$query='select HIGH_PRIORITY userId from mgit_users.users where hrOracleNumber='.$_SESSION['sso'];
$exec=$conn->execute ($query) or die ("Error $query".$conn->errorMsg());
$chiefId=$exec->fields['userId'];
$exec->Close();
}
//Despliega la tabla principal
function cargar(){
$respuesta = new xajaxResponse('ISO-8859-1');
include('../connection/connection.php');
//Se extrae la información de todos los records existentes
$query="SELECT HIGH_PRIORITY cc.name ccname, cc.description ccdesc, CONCAT(u.firstName,' ',u.lastName) ccowner, cc.ownerSSO osso, cc.initialBudget abudget, cc.actualBudget cbudget, cc.plannedBudget pbudget
FROM hr_cost_centers cc, mgit_users.users u
WHERE cc.ownerSSO = hrOracleNumber
ORDER BY ccname";