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
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 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
3 matches
Mail list logo