Hi Theodoris
First place I'd look is to see if the sql query was successful.
If it failed you'll get this error.
You can try a simple test
$sth = $dbh->query($sql);
if ($sth == FALSE) {
print "failed";
exit;
}
Arno
Thanks for the advice but the script works in one of the other systems
(running PHP 5.2.x) as well as in the same system using another apache
and a different php that is compiled from source and not installed as an
rpm package.
The query itself works very good but the basic problem is that the $dbh
handler probably doesn't get into the getClientFullName properly.
If I dump the handler and the $id before calling getClientFullName it
seems that their contents are as expected but when this function calls
fetch on the handler it fails.
I suspect that either PHP version 5.1.6 has a bug on this (but I could
find something similar in bugs.php.net) or my distro's package is
compiled like...
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php