Re: [PHP] Problem serializing a mysqli_result object.

2005-07-11 Thread Richard Lynch
On Thu, July 7, 2005 10:31 pm, Bjarke Freund-Hansen said: > Richard Lynch wrote: > >>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 retu

Re: [PHP] Problem serializing a mysqli_result object.

2005-07-08 Thread Jason Barnett
But why are you going to all of that trouble? What does the mysqli_result object have that you really need? If you just need the result set then you can fetch it as an assoc array and serialize that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Problem serializing a mysqli_result object.

2005-07-07 Thread Bjarke Freund-Hansen
Richard Lynch wrote: >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 ca

Re: [PHP] Problem serializing a mysqli_result object.

2005-07-07 Thread Richard Lynch
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 >

[PHP] Problem serializing a mysqli_result object.

2005-07-07 Thread Bjarke Freund-Hansen
Hi. I'm having a problem serializing a mysqli_result object, the serialized string contains only an empty object. The code is as following: $sql = new Mysqli("localhost", "user", "pass", "database"); $res = $sql->query("SELECT * FROM xxx WHERE `id` = 1"); print_r($res->fetch_assoc()); echo "\n"

Re: [PHP] Problem serializing a mysqli_result object.

2005-07-07 Thread Bjarke Freund-Hansen
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 alternativ