"G S" <[EMAIL PROTECTED]> wrote:
> $retCode = $sth->execute() ||
> printf("<BR>##### Trouble with dbh->execute():<br>" .
> "dbh->err= '%s'<br>" .
> "dbh->errstr= '%s'<br>",
> $dbh->err,
> $dbh->errstr
> );
This is probably a precedence error.
It is interpreted as
$retCode = ($sth->execute() || printf( ... ) );
If you want to store the return value of $sth->execute() into $retcode,
use parenthese or use 'or' instead of '||' .
Hans
--
Hans Ranke [EMAIL PROTECTED]
Lehrstuhl fuer Institute for
Entwurfsautomatisierung Electronic Design Automation
Technische Universitaet Muenchen, Germany
Phone +49 89 289 23660 Fax +49 89 289 63666