Stock included, can be improved

This commit is contained in:
sparkyx 2004-04-03 05:15:36 +00:00
parent 6c2615eed4
commit dc941e276c
6 changed files with 237 additions and 35 deletions

View file

@ -147,8 +147,13 @@ function DbConnect($p_db="account_repository") {
*/
function ExecSql($p_connection, $p_string) {
echo_debug("SQL = $p_string");
$ret=pg_exec($p_connection,$p_string);
if ( $ret == false ) { echo_error ("SQL ERROR ::: $p_string");}
if ( $ret == false ) {
echo_error ("SQL ERROR ::: $p_string");
exit(" Operation cancelled due to error : $p_string");
}
return $ret;
}
/*