My code:

$result = $this->Printer->findAll("Printer.id = '".$this-
>data['InksPrinter']['printer_id']."' AND Printer.printer = '".$this-
>data['InksPrinter']['printer']."' AND Printer.supplier_id = '".$this-
>data['InksPrinter']['supplier_id']."'");

echo $this->Printer->getNumRows();
print_r($result);


My program write:
-------------------------------------------
0
-------------------------------------------
Array
(
    [0] => Array
        (
            [Printer] => Array
                (
                    [id] => 5
                    [printer] => Stylus DX4000
                    [supplier_id] => 2
                    [search] =>
                    [url] =>
                    [created] => 2008-07-02 16:18:10
                    [modified] => 2008-07-02 16:20:01
                )

            [Supplier] => Array
                (
                    [id] => 2
                    [supplier] => Epson
                    [created] => 2008-07-02 16:17:09
                    [modified] => 2008-07-02 16:17:09
                )

            [Ink] => Array
                (
                )

        )

)

It's impossible that the value returned of getNumRows is 0! The result
array is not empty!

Why?!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to