Lol! Ok Conni! This is the best solution for me! Now my post seems a little ridiculous... lol Thanks a lot! Rapha "Cornelia Boenigk" <c@cornelia-boenigk.de> wrote in message 009301c31648$e409cdd0$65479150@zwerg2000">news:009301c31648$e409cdd0$65479150@zwerg2000... > 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 > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php