Re: about Mysql_affected_rows

2001-11-15 Thread M
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

Re: about Mysql_affected_rows

2001-11-14 Thread Paul DuBois
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

Re: about Mysql_affected_rows

2001-11-14 Thread John Steele
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

about Mysql_affected_rows

2001-11-14 Thread M
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