Re: Problem serializing a mysqli_result object.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Evert|Collab wrote:

>You can't serialize resource objects. Try:
>
>serialize($res->fetch_assoc());
>  
>
I know I can serialize the array fetch_assoc returns, but I really need to serialize a mysqli_result, so I can feed it to any function expecting a mysqli_result.

Are there any alternative way to do it? Manually?

Can I create a mysqli_result object and feed it the data myself? I can't seem to find any description for a constructor for the mysqli_result class in the function reference.

-- 
Bjarke Freund-Hansen <bjarke@xxxxxxxxxxxxx>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux