I have created a function in that style:
execQuery("SELECT id FROM contadeusuario WHERE session='$sessao'")['numRows']
I always use this syntax, but in the latest projects, when I upload them to production, it doesn't work.
execQuery(string $query)
returns an array with ['status']
, ['result']
e ['numRows']
, in the other servers I have to attribute the value to a variable.
$NR = execQuery("SELECT id FROM contadeusuario WHERE session='$sessao'");
and then use
$NR['numRows']
How can I configure my server so it always work like in the first way? I have looked for an option in the .ini files and forums, but didn't find anything