Paul DuBois wrote:
> >Am I making wrong?, is there some function just to retrieve qty records
> >selected in a query?
>
> mysql_num_rows() is intended for SELECT queries. Its argument should be the
> result set identifier.
Thanks , I checked again, and problem was exporting scripts from Windows
At 1:50 AM -0200 11/15/01, M wrote:
>Hello, I work PHP environment. I use to call Mysql_Affected_Rows to get
>number of records retrieved by SELECT commands.
>This works fine for some scripts, but now I got a script which returns
>qtty records = -1, even I know these records exists.
>I review Mysq
Miguel,
What you want is mysql_num_rows() after a SELECT call.
John
>Hello, I work PHP environment. I use to call Mysql_Affected_Rows to get
>number of records retrieved by SELECT commands.
>This works fine for some scripts, but now I got a script which returns
>qtty records = -1, even I know
Hello, I work PHP environment. I use to call Mysql_Affected_Rows to get
number of records retrieved by SELECT commands.
This works fine for some scripts, but now I got a script which returns
qtty records = -1, even I know these records exists.
I review Mysql manual and notice this function just re