Re: Problem serializing a mysqli_result object.

From: Date: Thu, 07 Jul 2005 19:53:08 +0000
Subject: Re: Problem serializing a mysqli_result object.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-218314@lists.php.net to get a copy of this message
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@rocekiller.dk>

« previous php.general (#218314) next »