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 |
|
|
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 |
|
|
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
|
|
|
|