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

Home » Imported messages » comp.lang.php » Re: mysqli fetch_assoc() straight to array (-> comp.lang.php)
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Return to the default flat view Create a new topic Submit Reply
Re: mysqli fetch_assoc() straight to array (-> comp.lang.php) [message #186007] Fri, 30 May 2014 11:19
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
add to buddy list
ignore all messages by this user
On Fri, 30 May 2014 09:53:56 -0400, richard wrote:

> On Fri, 30 May 2014 13:20:13 +0000 (UTC), Denis McMahon wrote:
>
>> On Fri, 30 May 2014 07:59:09 -0400, richard wrote:
>>
>>> Is there a way to make it simpler to just load an array based upon the
>>> results of $row?
>>
>> http://www.php.net/manual/en/mysqli-result.fetch-assoc.php
>>
>> http://www.php.net/manual/en/language.operators.assignment.php
>>
>> As far as I can tell, you already have what you're looking for, you
>> just haven't realised it.
>>
>> Although I'm not 100% sure which of the above pages you've failed to
>> comprehend. Possibly both of them.
>
> I have.
> Neither address my question directly.
> One user notes example though shows using a for loop with a single
> dimemsnion array.
> My array is 2d.

The code in your original post does not include any 2d arrays.

Which 2d array are you talking about?

Do you actually understand the difference between 1d and 2d arrays? In php
(which we probably shouldn't be discussing here anyway) there is no such
thing as a multi-dimensional array. The closest approximation in php is a
1d array consisting of arrays, each of which may consist of further
arrays, nested down to as many levels as you wish to call dimensions.
However, this is not n-dimensional arrays in the true sense, and it's
also off topic in a mysql group.

xp and fu to comp.lang.php.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
[Message index]
 
Read Message
Previous Topic: PHP SoapClient?
Next Topic: Re: mysqli fetch_assoc() straight to array
Goto Forum:
  

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

Current Time: Sun Dec 17 16:40:53 EST 2017

Total time taken to generate the page: 0.00640 seconds