><!!!!!!!!!!!!!!!
>      $text = "Error: Das Kommando\n"
>             ."\t\"$command\"\n"
>             ."\tist nicht korrekt: ".$dbh->errstr."\n";       <!!!!!!!!!!!!

Thanks Reiner Dassing for your solution !
But actually I don't use DBI, I use Pg. And the solution(for my case) is
like this :

use Pg;

$conn    = Pg::connectdb("dbname=mydb");
$command = "insert into mytable values("myvalues")";
$result  = $conn->exec($command);
$status  = $result->resultStatus;

#if everything OK, $status will be 1

BTW thanks again and prepare for my next question ! :-)

-haris- 

Reply via email to