RE: [PHP] Can I modify a MySQL object?

2011-03-23 Thread admin
Depends on where you want to manipulate. In mysql you can $query = 'select first_name as FNAME from tablename'; In this result you changed the column name from first_name to FNAME for the result only. In this example we can change the data returned in a particular field by using an if statement

Re: [PHP] Can I modify a MySQL object?

2011-03-23 Thread Paul M Foster
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

Re: [PHP] Can I modify a MySQL object?

2011-03-23 Thread Brian Dunning
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 do