Re: [PHP-DB] Serializing mySQLi result resource

[email protected] ("Yves Sucaet")
Newsgroups php.db
Message-ID <000501c8ca77$d02da370$f6edd80c@rincewind>
It is definitely possible, but I'm not sure if any standard solutions exist. 
You could encapsulate your mysql_query() function into a class that has a 
Serializable() method. You'd have to write your own method for that though.

Too bad MySQL doesn't support the "select.... for xml" construction that 
SQLServer has, because then you could simply serialize the XML-output from 
your query.

PEAR has two alternate packages for caching: 
http://pear.php.net/packages.php?catpid=3&catname=Caching Maybe that's a 
starting point as well?

HTH,

Yves

----- Original Message ----- 
From: "Andrew Martin" <[email protected]>
To: <[email protected]>
Sent: Sunday, June 08, 2008 7:26 AM
Subject: [PHP-DB] Serializing mySQLi result resource


> Hello,
>
> Is it possible to serialize a MySQL(i) result resource? I am looking
> to insert results into the eAccelerator cache but the returned
> resource does not appear to be recognised by mysqli_fetch_assoc.
>
> Thanks,
>
>
> Andy
>
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.