Re: about transactions in Postgresql

From: Date: Fri, 09 May 2003 16:34:20 +0000
Subject: Re: about transactions in Postgresql
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-27622@lists.php.net to get a copy of this message
Hi Raphael Why don't you simply use $query = "insert into member values('Jim Jones', '21', 'passw', 'jim@bfr.com');"; if ( mail(jim@bfr.com, "Welcome", "", "")) { pg_query($connId, $query); } else { echo 'Mail could'nt be delivered.'; } If the mail() function workes properly then the record will be inserted. If mail() failed a message will be issued. Regards Conni

« previous php.db (#27622) next »