Re: mysqli fetch_assoc() straight to array [message #186014 is a reply to message #186010] |
Fri, 30 May 2014 23:27 |
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
|
|
|