99 |
function ExecSql($p_connection, $p_string) { |
function ExecSql($p_connection, $p_string) { |
100 |
echo_debug(__FILE__,__LINE__,"SQL = $p_string"); |
echo_debug(__FILE__,__LINE__,"SQL = $p_string"); |
101 |
|
|
102 |
$ret=pg_exec($p_connection,$p_string); |
$ret=pg_query($p_connection,$p_string); |
103 |
if ( $ret == false ) { |
if ( $ret == false ) { |
104 |
echo_error ("SQL ERROR ::: $p_string"); |
echo_error ("SQL ERROR ::: $p_string"); |
105 |
exit(" Operation cancelled due to error : $p_string"); |
exit(" Operation cancelled due to error : $p_string"); |