Enfin : the beta version is ready, only the documentation is incomplete

This commit is contained in:
sparkyx 2006-06-28 00:13:25 +00:00
parent 21518b1cdf
commit 91de7ee101
374 changed files with 6621 additions and 3576 deletions

View file

@ -405,7 +405,18 @@ function save_upload_document ($cn,$seq) {
}
}
/*!\brief return the value of the sql, the sql will return only one value
* with the value
* \param $p_cn database connection
* \param $p_sql the sql stmt example :select s_value from document_state where s_id=2
* \return only the first value
*/
function getDbValue($p_cn,$sql)
{
$ret=ExecSql($p_cn,$sql);
if ( pg_NumRows($ret) == 0 ) return "";
$r=pg_fetch_row($ret,0);
return $r[0];
}
?>