is there any way to alter the column name in the query when fetching an array (mysql)
what do you mean by alter... you want to actually CHANGE the table?
and if so... i'm curious, why?
If you just mean temporarily while you're retrieving it, yes, you can.
select field1 as newfieldnamehere from sometable where....
Sxooter wrote:If you just mean temporarily while you're retrieving it, yes, you can. select field1 as newfieldnamehere from sometable where....
that's what i was getting at as well 🙂
stolzyboy wrote:that's what i was getting at as well 🙂
Yeah, I kinda figured as much. His mentioning of the fetch ops was what lead me there.