CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Undefined property: num_rows

Print topic Send  topic

Author Message
dirksamson

Posts: 32
Posted: 07/02/2004, 1:20 AM

I get the following error in my CCS project since my last CCS upgrade.

Notice: Undefined property: num_rows in D:\EVA\WebInterface\db_mysql.php on line 189

Looking at the code mentioned I fond the following:
"........
} else {

/* half assed attempt to save the day,
* but do not consider this documented or even
* desireable behaviour.
*/
@mysql_data_seek($this->Query_ID, $this->num_rows());
$this->Row = $this->num_rows;
} ......"

Does anyone have a suggestion for solving this problem? Reading the comment, I do think there's room for improvement...
_________________
Dirk
View profile  Send private message
peterr


Posts: 5971
Posted: 07/02/2004, 10:59 AM

db_mysql.php is not part of CCS, just the PHP library. I assume that the problem is not related to it but originates somewhere else.
I personally suspect that it may be related to some manual code modifications you made (?). Also please make sure that you re-generate all the files (F9) after upgrading.
Our support may be able to help you by analyzing this issue in more detail.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Joerg v. Roos
Posted: 07/27/2004, 6:56 AM

I had a problem with num_rows with new MYSQL version:

if (mysql_num_rows($DBConnection999->Query_ID) == 0))...

-->mysql error

use

if (($DBConnection999->Query_ID == 0) || (mysql_num_rows($DBConnection999->Query_ID) == 0)) {

--> ok

Last Hero
Posted: 07/27/2004, 8:28 AM

Change code in db_mysql function seek to:
} else {

/* half assed attempt to save the day,
* but do not consider this documented or even
* desireable behaviour.
*/
@mysql_data_seek($this->Query_ID, $this->num_rows());
$this->Row = $this->num_rows();
} ...


"()" - added

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.