On 07/14/2012 02:54 PM, Phil Weir wrote:
The new class does not have the method num_rows, though it looks like the method affected_rows does the same job so may be this is just a backwards compatibility issue. rcube_contacts uses the num_rows method.
affected_rows() is not the same. It shouldn't be used for SELECT statements. I removed num_rows() because it was used only in one place and because it can be simply replaced by looping on fetch_array() if needed. rcube_contacts doesn't use num_rows() any more.