Ask a Question related to PHP Development, Design and Development.
-
Cpt John W. Holmes #1
Re: [PHP] php mysql array question
> Is there any php function to pull a query into an array? I know there is
aloop> way to get the first row of the results in an array, but I'm having tolooking> through each row pushing the row onto an array to get the result I'mused> for and it seems like a lot of code for something that I would think isThere's no PHP function to do so. Some abastraction layers provide this, but> a lot.
it's just doing a loop like you're doing.
Show your code and we can offer tips on how to improve performance.
---John Holmes...
Cpt John W. Holmes Guest
-
mySQL and Array
Hi all- I have defined an array using: <cfset notesattached = ArrayNew(1)> and added some data like this: <cfset notesattached = 4>... -
MySQL Table Question > Array?
I'm programming a Gaming Ladder/Tournament system. Let's say I have the following tables: PLAYERS ------- * Player_ID * Player_name .... *... -
array question (grep -v on array)
Hi, I have an output of errors fed into an array, after which I only look at things I care about and put them in a different array: ... -
HOW TO -- ARRAY UPDATE MYSQL
HI ALL, I want to update a mulitple row from a HTML Table to MYSQL Database. L1 V1 T1 L2 V2 V2 L3 V3 V3 Any help in this regard is much... -
php mysql array question
I use the PEAR db http://pear.php.net/manual/en/package.database.php This returns arrays - examples here... -
Philip Olson #2
Re: [PHP] php mysql array question
On Fri, 11 Jul 2003, CPT John W. Holmes wrote:
I'm glad this feature doesn't exist. Just think how abused it would> a> > Is there any php function to pull a query into an array? I know there is> loop> > way to get the first row of the results in an array, but I'm having to> looking> > through each row pushing the row onto an array to get the result I'm> used> > for and it seems like a lot of code for something that I would think is>> > a lot.
> There's no PHP function to do so. Some abastraction layers provide this, but
> it's just doing a loop like you're doing.
>
> Show your code and we can offer tips on how to improve performance.
be, how many people would use it, when few would actually need it.
Most people can use the data while in the loop, not after. Or do
what is needed in the sql, not php. Maybe I'm a little too parental
though, but so be it. :)
Regards,
Philip
Philip Olson Guest



Reply With Quote

