344 |
$pos != 'p_end') |
$pos != 'p_end') |
345 |
echo_error(__FILE__."-".__LINE__.' UNDEFINED PERIODE'); |
echo_error(__FILE__."-".__LINE__.' UNDEFINED PERIODE'); |
346 |
$ret=execSql($p_cn,"select to_char($pos,'Mon YYYY') as t from parm_periode where p_id=$p_id"); |
$ret=execSql($p_cn,"select to_char($pos,'Mon YYYY') as t from parm_periode where p_id=$p_id"); |
347 |
if (pg_NumRows($ret) == 0) return __FILE__.":".__LINE__." ERROR UNKNOW PERIODE"; |
if (pg_NumRows($ret) == 0) return null; |
348 |
$a=pg_fetch_array($ret,0); |
$a=pg_fetch_array($ret,0); |
349 |
return $a['t']; |
return $a['t']; |
350 |
} |
} |