After some more experimentation I have determined that the rowCount()
method in the PDOStatement object just doesn't work. Using your ultra
simple SQL test I get this:
PDOStatement Object
(
[queryString] => select 123 as abc;
)
rows = 0
Joe Wilson wrote:
$sql = "SELECT count(*) FROM feedback";
$result = $handle->query($sql);
echo "rows = " . $result->rowCount() . "\n";
I've never used PHP, but just for kicks, to eliminate
the database from the equation, try:
$sql = "SELECT 123 AS abc;";
and see what happens.
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------
--
Greg Gulik http://www.gulik.org/greg/
greg @ gulik.org