PHP Classes

RowCount()

Recommend this page to a friend!

      Ultimate MySQL  >  All threads  >  RowCount()  >  (Un) Subscribe thread alerts  
Subject:RowCount()
Summary:Should this not return 0 for a zero row pull?
Messages:1
Author:Owen Lees
Date:2008-01-11 20:02:47
 

  1. RowCount()   Reply   Report abuse  
Picture of Owen Lees Owen Lees - 2008-01-11 20:02:47
I asked this via email but realised that you guys probably get a zillion emails a second so heres it again!

-->

I'd like to kick off by complimenting you on a top class!

I have one small bug/perhaps observation, which has niggled me - this may not be an issue but I felt that I should ask!

I use $db->RowCount() to ascertain if records are in a table sometimes, this returns with an error if 0 rows which causes issues in the logic as you can imagine.

I was expecting that the function would have corresponded to the mysql_num_rows in php which returns 0...

Are there plans to alter this or can you recommend a workaround to the issue?

<--

Many thanks

Owen Lees