I am using PEAR DB package with php 4.1.2 I have got the following error message. Fatal error: Call to undefined function: limitquery() I have checked the source and limitquery is in db_common.php the object is instance of db_mysql which extends db_common. So what is the problem ? Maybe it is a bug in 4.1.2. Unfortunatelly I can't update it. (I have no root access)
Show the source code? That particular error occurs when calling a function, not a class method.
var_dump((get_class($db))); $db->setFetchMode(DB_FETCHMODE_ASSOC); $result = & db->limitQuery($sql,$from,$count);
The last line causes the error.
the var_dump says db_mysql
Francis
Missing $ in front of object db.
Sorry I accidenatlly deleted the $ sign. I think the problem is with include_path. I think there is an older version of Pear-db which is included instead of my locally installed new version. So the older and newer conflicts.
I have renamed the mysql.php to mysql2.php and changed the PEAR-DB class and it works. No there is an error with mysql version 🙁 But it is another story 🙂
thanks
Ok good luck 🙂