Re: [PHP] I want to get count rows with the pear packet

2005-05-12 Thread Richard Lynch
On Thu, May 12, 2005 7:14 pm, Tomás Rodriguez Orta said: > 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

[PHP] I want to get count rows with the pear packet

2005-05-12 Thread =?iso-8859-1?Q?Tom=E1s_Rodriguez_Orta?=
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