FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Re: mysqli fetch_assoc() straight to array
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: mysqli fetch_assoc() straight to array [message #186014 is a reply to message #186010] Fri, 30 May 2014 23:27 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Fri, 30 May 2014 16:54:02 -0400, richard wrote:

> On Fri, 30 May 2014 16:23:32 -0400, Lew Pitcher wrote:

>> Followup set to comp.lang.php
>>
>> FWIW, PHP permits assignment of arrays, so
>> $row = $result->fetch_assoc(); $array = $row;
>> echo $n.") ".$array['songs']."<br>";
>> is legal PHP code.
>
> Thank you sir.
> At least you said "why".
> The others just say it is not an issue in mysql but refused to say why.

Richard, this is blatant fucking bullshit.

We have spent several posts recently trying to educate you as to the
difference between "mysql" the rdbms and "mysql[i]" the php application
layer. Previous posts in this thread have referred you back to those
discussions. Don't come out with such fucking bullshit as "no-one else
said why."

> But my question was dealing with a mysql function.

Your question was dealing with php mysql[i] functions. If you didn't
realise that you're even dumber than I thought.

> I just figured there had to be some way of being able to assign the
> columns within the function, but apparently not.

If and when you explain what you mean by "assign the columns within the
function" and you ask in the right place, you may get an answer, but at
the moment it still sounds to me as if you're asking how to do what
you're already doing with the php statements you're using.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: mysqli fetch_assoc() straight to array (-> comp.lang.php)
Next Topic: ArrayAccess interface, Traversable interface and foreach
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Jun 17 12:23:40 GMT 2024

Total time taken to generate the page: 0.04037 seconds