Re: [PHP] php mysql_num_rows problem

2002-02-27 Thread Pascal Polleunus
2002 4:58 PM Subject: [PHP] php mysql_num_rows problem > Hi list, > > I have a class to perform my tasks to bd, among than there's this function > > function executa($sql="") { > if($sql == "") { > $this->resultado = 0; >

Re: [PHP] php mysql_num_rows problem

2002-02-27 Thread Pascal Polleunus
with insert, update and delete you must use mysql_affected_rows() - Original Message - From: "Rodrigo Peres" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 4:58 PM Subject: [PHP] php mysql_num_rows problem > Hi

[PHP] php mysql_num_rows problem

2002-02-27 Thread Rodrigo Peres
Hi list, I have a class to perform my tasks to bd, among than there's this function function executa($sql="") { if($sql == "") { $this->resultado = 0; $this->numrows = 0; $this->row = -1; } $this->resultado = mysql_query($sql,$this->con