Re: Problem serializing a mysqli_result object.

From: Date: Thu, 07 Jul 2005 20:54:11 +0000
Subject: Re: Problem serializing a mysqli_result object.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-218315@lists.php.net to get a copy of this message
On Thu, July 7, 2005 12:53 pm, Bjarke Freund-Hansen said: >>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. The connection simply WILL NOT survive the ending of a PHP script. Period. If you want to hack the PHP source to try to change that, go for it... -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#218315) next »