I want to get count rows with the pear packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello hard people!!!
I want to get count rows at the query using odbc over windows.
but I can't get any value of this, I doing this.

$sql="SELECT * FROM id Like '$id'";
$res=$db->query($sql);
$numRecords=$res->numRows();
echo $numRecords;

but when I the page print $numRecords I saw this Object id #5 

somebody can Help me?

I need an small help. please!!!!

regrads TOMAS
 



-------------------------------------------------------------------------
Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27
en el dominio de correo angerona.cult.cu  y no se encontro ninguna coincidencia.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux