Re: Can I modify a MySQL object?

From: Date: Thu, 24 Mar 2011 02:18:46 +0000
Subject: Re: Can I modify a MySQL object?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-312028@lists.php.net to get a copy of this message
On Wed, Mar 23, 2011 at 05:12:00PM -0700, Brian Dunning wrote: > I should have said "modify the contents of a MySQL resource". > > On Mar 23, 2011, at 5:06 PM, Brian Dunning wrote: > > > Let's say I do a query: > > > > $result = mysql_query("select * from tablename"); > > > > Is there some way I can manually update the contents of certain columns/records in > > $result? I don't want to actually update MySQL, just the results that I'm holding in > > memory for this script. Can I do it without converting it to a regular array? Resources are, I believe, opaque, thus not directly modifiable (safely). Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com

« previous php.general (#312028) next »