Re: [PHP] Associative Arrays

2008-06-21 Thread Daniel Brown
On Fri, Jun 20, 2008 at 10:04 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > You should have looked here: > >http://ca.finance.yahoo.com/currency/convert?amt=1&to=USD&from=CAD > > Instead of at last years currency. The link I provided was purposeful, to illustrate how quickly the US Do

Re: [PHP] Associative Arrays

2008-06-20 Thread Robert Cummings
On Fri, 2008-06-20 at 15:51 -0400, Daniel Brown wrote: > On Fri, Jun 20, 2008 at 2:19 PM, tedd <[EMAIL PROTECTED]> wrote: > > At 2:10 PM -0400 6/20/08, Daniel Brown wrote: > >> > >> On Fri, Jun 20, 2008 at 12:20 PM, tedd <[EMAIL PROTECTED]> wrote: > >>> > >>> Rob: > >>> > >>> I always read your p

Re: [PHP] Associative Arrays

2008-06-20 Thread Daniel Brown
On Fri, Jun 20, 2008 at 2:19 PM, tedd <[EMAIL PROTECTED]> wrote: > At 2:10 PM -0400 6/20/08, Daniel Brown wrote: >> >> On Fri, Jun 20, 2008 at 12:20 PM, tedd <[EMAIL PROTECTED]> wrote: >>> >>> Rob: >>> >>> I always read your posts. >>> >>> As I have said many times "I have never met a man that I

Re: [PHP] Associative Arrays

2008-06-20 Thread Daniel Brown
On Fri, Jun 20, 2008 at 2:33 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-06-20 at 14:10 -0400, Daniel Brown wrote: >> On Fri, Jun 20, 2008 at 12:20 PM, tedd <[EMAIL PROTECTED]> wrote: >> > >> > Rob: >> > >> > I always read your posts. >> > >> > As I have said many times "I have ne

Re: [PHP] Associative Arrays

2008-06-20 Thread Robert Cummings
On Fri, 2008-06-20 at 14:10 -0400, Daniel Brown wrote: > On Fri, Jun 20, 2008 at 12:20 PM, tedd <[EMAIL PROTECTED]> wrote: > > > > Rob: > > > > I always read your posts. > > > > As I have said many times "I have never met a man that I couldn't learn > > from." > > > > In your case, I usually learn

Re: [PHP] Associative Arrays

2008-06-20 Thread tedd
At 2:10 PM -0400 6/20/08, Daniel Brown wrote: On Fri, Jun 20, 2008 at 12:20 PM, tedd <[EMAIL PROTECTED]> wrote: Rob: I always read your posts. As I have said many times "I have never met a man that I couldn't learn from." In your case, I usually learn more. Tedd must've received t

Re: [PHP] Associative Arrays

2008-06-20 Thread Daniel Brown
On Fri, Jun 20, 2008 at 12:20 PM, tedd <[EMAIL PROTECTED]> wrote: > > Rob: > > I always read your posts. > > As I have said many times "I have never met a man that I couldn't learn > from." > > In your case, I usually learn more. Tedd must've received the check (cheque). -- Dedicated Server

Re: [PHP] Associative Arrays

2008-06-20 Thread tedd
At 11:18 AM -0400 6/20/08, Robert Cummings wrote: Hahah, I was wondering if you would catch my little tidbit ;) Cheers, Rob. -- Rob: I always read your posts. As I have said many times "I have never met a man that I couldn't learn from." In your case, I usually learn more. Cheers, tedd -

Re: [PHP] Associative Arrays

2008-06-20 Thread Robert Cummings
On Fri, 2008-06-20 at 10:31 -0400, tedd wrote: > At 11:37 PM -0400 6/19/08, Robert Cummings wrote: > >If I would still get wrapping, then I use a block style: > > > > functionWithFarToManyParamsOrLongVariableNames > > ( > > $param1, $param2, $param3, $param4, $param5, $param6, > >

Re: [PHP] Associative Arrays

2008-06-20 Thread tedd
At 11:37 PM -0400 6/19/08, Robert Cummings wrote: If I would still get wrapping, then I use a block style: functionWithFarToManyParamsOrLongVariableNames ( $param1, $param2, $param3, $param4, $param5, $param6, $param7, $param8, $param9, $paramA, $paramB, $paramC ); C

Re: [PHP] Associative Arrays

2008-06-19 Thread Robert Cummings
On Thu, 2008-06-19 at 19:59 -0700, Paul Novitski wrote: > At 6/19/2008 07:36 PM, Robert Cummings wrote: > > > >> 54321 => array( > > > >> 'mail' => '[EMAIL PROTECTED]', > > > >> 'companyName' => 'Asdfu Corp.', > > > >> ), > > > >> ); > > > > > > > > > > > > This is the right P

Re: [PHP] Associative Arrays

2008-06-19 Thread Paul Novitski
At 6/19/2008 07:36 PM, Robert Cummings wrote: > >> 54321 => array( > >> 'mail' => '[EMAIL PROTECTED]', > >> 'companyName' => 'Asdfu Corp.', > >> ), > >> ); > > > > > > This is the right PHP syntax, except that you've got an extraneous comma > > before the closing parenthesis

Re: [PHP] Associative Arrays

2008-06-19 Thread Robert Cummings
On Fri, 2008-06-20 at 11:19 +1000, Chris wrote: > Paul Novitski wrote: > > At 6/19/2008 05:55 PM, VamVan wrote: > >> How to create an associative array of this kind in PHP? > >> > >> return array( > >> 12345 => array( > >> 'mail' => '[EMAIL PROTECTED]', > >> 'companyName' => 'Asdf

Re: [PHP] Associative Arrays

2008-06-19 Thread Chris
Paul Novitski wrote: > At 6/19/2008 05:55 PM, VamVan wrote: >> How to create an associative array of this kind in PHP? >> >> return array( >> 12345 => array( >> 'mail' => '[EMAIL PROTECTED]', >> 'companyName' => 'Asdf Inc.', >> ), >> 54321 => array( >> 'mail' => '[EMA

Re: [PHP] Associative Arrays

2008-06-19 Thread Paul Novitski
At 6/19/2008 05:55 PM, VamVan wrote: How to create an associative array of this kind in PHP? return array( 12345 => array( 'mail' => '[EMAIL PROTECTED]', 'companyName' => 'Asdf Inc.', ), 54321 => array( 'mail' => '[EMAIL PROTECTED]', 'companyName' => 'Asdfu C

Re: [PHP] Associative Arrays

2008-06-19 Thread Shiplu
On Thu, Jun 19, 2008 at 8:55 PM, VamVan <[EMAIL PROTECTED]> wrote: > Hi, > > How to create an associative array of this kind in PHP? > > return array( >12345 => array( > 'mail' => '[EMAIL PROTECTED]', > 'companyName' => 'Asdf Inc.', >), >54321 => array( > 'mail' => '[EM

RE: [PHP] Associative arrays... help

2002-02-01 Thread Kevin Stone
You can have arrays of arrays of arrays of arrays if you like. But you must treat each array according to its type. I'm not sure what your function parse() is doing, but I assume it's going to build three list-type arrays. So when your looping through the associative array with a foreach() loop

Re: [PHP] Associative arrays (names and strings)

2001-08-30 Thread _lallous
> From: "_lallous" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 30, 2001 4:10 PM > Subject: Re: [PHP] Associative arrays (names and strings) > > > > not what I want! > > i want something like this when you do mysql_fetch_ar

Re: [PHP] Associative arrays (names and strings)

2001-08-30 Thread Andrey Hristov
orporation http://www.icygen.com 99% - Original Message - From: "_lallous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 30, 2001 4:10 PM Subject: Re: [PHP] Associative arrays (names and strings) > not what I want! > i want something l

Re: [PHP] Associative arrays (names and strings)

2001-08-30 Thread _lallous
not what I want! i want something like this when you do mysql_fetch_array() don't you get a reference to your columuns via fieldname or array index? ie. $row = mysql_fetch_array($result_set); echo $row['name']; or echo $row[0]; same return same value! I want something like it with my initial pos

Re: [PHP] Associative arrays (names and strings)

2001-08-30 Thread Andrey Hristov
array(1, 2, 3, 4), "set2" => array(11, 22, 33, 44), "set3" => array(111, 222, 333, 444)); $a=array_keys($arr); var_dump($a); // var_dump(array_keys($arr)["set1"]); not possible ?> Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "_lallous" <

Re: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Colin Viebrock
> > > > > > > > > and like that the text field won't focus and the parser tells me that > arraystuff has no properties and that inputfield is undefined. ... should work. - Colin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Tim McGuire
Yes, I find I have to do this a lot if I have multiple rows in a form and I want to do anything with javascript. I use commands like this: document.formname["the_checkbox[9]"].checked = true and if you needed to stick a variable in the index: theform["the_checkbox["+the_index+"]"].checked = tru

RE: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Taylor, Stewart
This is because you currently only have one field on your form named arraystuff. The browser only creates an array of elements if there is more than one of them. arraystuff.focus(), would work at present. -Stewart -Original Message- From: Daniel James [mailto:[EMAIL PROTECTED]] Sent: 0

RE: [PHP] associative arrays

2001-07-12 Thread Adrian Ciutureanu
$result = mysql_db_query("database","select item1, item2 from table"); while ($row = mysql_fetch_array($result)) { $myArray[$row['item1']] = $row['item2']; } > -Original Message- > From: Martin Lucas [mailto:[EMAIL PROTECTED]] > Sent: 12 iulie 2001 16:25 > To: '[EMAIL PROTECTED]'

Re: [PHP] Associative arrays in strings

2001-04-23 Thread Phil Driscoll
echo "Here is a $string, {$myArray["joe"]} with $alot of PHP $variables"; -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [PHP] Associative arrays in strings

2001-04-23 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Boget, Chris") wrote: > Now, supposing you > do have error level set to very high, you cannot do this: > > echo "Here is a $string, $myArray['joe'] with $alot of PHP $variables"; > (using single quotes) > > to stop the error. You actually ha