selectAdd() PEAR
| From: | Adrian Walls | Date: | Mon, 20 Aug 2007 15:04:34 +0000 |
| Subject: | selectAdd() PEAR | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27833@lists.php.net to get a copy of this message | ||
Hi,
I am trying to run the following query:
"SELECT SQL_CALC_FOUND_ROWS * FROM prop WHERE xyz..."
Using the pear db object as follows:
$propDO = new DAO_Prop();
$propDO->selectAdd('SQL_CALC_FOUND_ROWS()');
$propDO->deleted = 0;
$propDO->valuation = 0;
$propDO->limit($currentIndex,$limit);
$propDO->find();
However this does not run my query as expected. When I debug the code the
query being executed is:
"SELECT * , SQL_CALC_FOUND_ROWS FROM prop WHERE xyz..."
It does not appear to build the query with the selectAdd() correctly. Am I
missing something? I would appreciate if someone could shed some light on
this problem.
TIA,
Adrian.