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

[PHP] Associative Arrays

2008-06-19 Thread VamVan
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' => '[EMAIL PROTECTED]', 'companyName' => 'Asdfu Corp.', ), ); Thanks

RE: [PHP] Associative arrays... help

2002-02-01 Thread Kevin Stone
L PROTECTED] www.helpelf.com > -Original Message- > From: Sandeep Murphy [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 01, 2002 8:03 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Associative arrays... help > > Hi, > > sorry for repeating this...didnt change the

[PHP] Associative arrays... help

2002-02-01 Thread Sandeep Murphy
Hi, sorry for repeating this...didnt change the sub..:) Is there any way I can construct an associative array out of 3 other arrays?? like for eg. function parse() { appid[]; appnm[]; url[]; } I want to do something like this: function arr() { $applist = array("APPID" =>$appid,

[PHP] associative arrays..help!

2002-01-21 Thread Sandeep Murphy
Hi, This is a long one so pl bear with me... I have an XML structure as follows: 001 WORD //SUB APPLICATION 002 excel

[PHP] Associative Arrays Performance under Linux

2001-11-09 Thread Mike Boulet
I have been troubleshooting the performance of some code for a couple of days and I have not been able to find out what is happening. Here's the pseudo-code - Get jobs from the MySql database. Return all customers. Returns 10 rows. then for each customer return their active jobs. ( About 1 to 2

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
Message - > From: "_lallous" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 30, 2001 3:00 PM > Subject: [PHP] Associative arrays (names and strings) > > > > Anyway to do this fast: > > > > $arr = array("set1"

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

2001-08-30 Thread Andrey Hristov
Original Message - From: "_lallous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 30, 2001 3:00 PM Subject: [PHP] Associative arrays (names and strings) > Anyway to do this fast: > > $arr = array("set1" => array(1, 2, 3, 4), &qu

[PHP] Associative arrays (names and strings)

2001-08-30 Thread _lallous
Anyway to do this fast: $arr = array("set1" => array(1, 2, 3, 4), "set2" => array(11, 22, 33, 44), "set3" => array(111, 222, 333, 444)); It's not that I want to access $arr like: echo $arr['set1'] I also want to access it as: echo $arr[1] (and it must be equal to $arr['set1']; and It seems i ca

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
: 08 August 2001 12:56 To: [EMAIL PROTECTED] Subject: [PHP] associative arrays in html forms and javascript Hi everyone :) imagine this if you will.. ugly form with a text input field that is focussed when the form loads, erm.. nice. now, I like to put all my form stuff

[PHP] associative arrays in html forms and javascript

2001-08-08 Thread Daniel James
Hi everyone :) imagine this if you will.. ugly form with a text input field that is focussed when the form loads, erm.. nice. now, I like to put all my form stuff into associative arrays, makes things a lot nicer when I am doing things later... but this... means someth

AW: [PHP] associative arrays

2001-07-12 Thread Martin Lucas
hi adrian, many thanks for your tip. it works fine. kind regards martin -Ursprüngliche Nachricht- Von: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. Juli 2001 15:46 An: Martin Lucas Cc: [EMAIL PROTECTED] Betreff: RE: [PHP] associative arrays $result

RE: [PHP] associative arrays

2001-07-12 Thread Adrian Ciutureanu
Sent: 12 iulie 2001 16:25 > To: '[EMAIL PROTECTED]' > Subject: [PHP] associative arrays > > > Hi everybody > i have the following database query: > > $result=mysql_db_query("database","select item1,item2 from table"); >

[PHP] associative arrays

2001-07-12 Thread Martin Lucas
Hi everybody i have the following database query: $result=mysql_db_query("database","select item1,item2 from table"); while ($row=mysql_fetch_array($result)){ $a=$row[item1]; $b=$row[item2]; } what i need is an associative array, with $a as

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

[PHP] Associative arrays in strings

2001-04-23 Thread Boget, Chris
We have an array: $myArray = array( "joe"=>"bob", "this"=>"that" ); I know that technically, you shouldn't do the following to print it out: echo "Here is a $string, $myArray[joe] with $alot of PHP $variables"; If you have the highest error level on, PHP will display an error though if you do