$re = pg_query( $conn , $SQLSTR ) or die ('error msg:' . pg_last_error($conn)); |
or
$re = pg_query( $conn , $SQLSTR );
if(!$re){
echo 'error msg:' . pg_last_error($conn);
}else{
echo 'OK';
}
$re = pg_query( $conn , $SQLSTR ) or die ('error msg:' . pg_last_error($conn)); |
or
$re = pg_query( $conn , $SQLSTR );
if(!$re){
echo 'error msg:' . pg_last_error($conn);
}else{
echo 'OK';
}