mysql_num_rows always returns 0.
Posted by: dE logics
Date: June 02, 2013 11:56PM

Hello everyone.

Everything is working well with MySql Connector/C except this very function.

This always returns 0, and I doubt this's a type cast problem. I tried using this function directly, and with explicit type cast --

(unsigned long) mysql_num_rows(res)

unsigned long no_rows = mysql_num_rows ( tbl_content );

But no matter what I do, it's always 0. Where as in reality, the query returns 5 records, and I get it via mysql_fetch_row.

Options: ReplyQuote


Subject
Views
Written By
Posted
mysql_num_rows always returns 0.
4057
June 02, 2013 11:56PM
1889
June 03, 2013 12:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.