Re: Calling a PostgreSQL function via DBI
- From: louis.gonzales@xxxxxxxxxxxxxx (Louis Gonzales)
- Date: Thu, 23 Feb 2006 17:49:44 -0500
Christian Stalp wrote:
That the way:Hey good job everybody with their suggestions! Especially to Ronald.
$arg1 = $cookieValue;
$arg2 = $dbh->quote ( $ueberschrift );
$arg3 = $dbh->quote ( $beschreibung );
$arg4 = $system_zeit;
$arg5 = "2001-11-11 11:11:11";
$arg6 = $startpreis;
$arg7 = $startpreis;
$arg8 = $kategorie_nummer;
$result = $dbh->prepare ( "SELECT neue_auktion ( ?, ?::text, ?::text,
?::timestamp, ?::timestamp, ?::numeric, ?::numeric, ?::numeric ) " ) or die
"Vorbereitung nicht durchfuehrbar!\n";
$result->bind_param ( 1, $arg1 );
$result->bind_param ( 2, $arg2 );
$result->bind_param ( 3, $arg3 );
$result->bind_param ( 4, $arg4 );
$result->bind_param ( 5, $arg5 );
$result->bind_param ( 6, $arg6 );
$result->bind_param ( 7, $arg7 );
$result->bind_param ( 8, $arg8 );
$result->execute() or die "Abfrage nicht ausfuehrbar -suchprofil!
$DBI::errstr\n";
$result->finish();
This works, it writes into the database. Hurra, yea :-)))))
Gruss Christian
- References:
- RE: Calling a PostgreSQL function via DBI
- From: Christian Stalp
- RE: Calling a PostgreSQL function via DBI
- From: Christian Stalp
- RE: Calling a PostgreSQL function via DBI
- Prev by Date: RE: Calling a PostgreSQL function via DBI
- Next by Date: RE: Calling a PostgreSQL function via DBI
- Previous by thread: RE: Calling a PostgreSQL function via DBI
- Next by thread: RE: Calling a PostgreSQL function via DBI
- Index(es):