Re: [PHP-WIN] Array Question

2007-08-17 Thread tg-php
I assume you're getting fields with the same name from pulling data from two or more tables. Something like "SELECT * FROM TABLE1, TABLE2 WHERE TABLE1.id = TABLE2.id" or something like that. At any rate, if you can.. it's always good to name the fields you want to pull instead of using "SELECT

RE: [PHP-WIN] Array Question

2007-08-17 Thread Vandegrift, Ken
7;] mydata['contactID_2'] Ken Vandegrift Shari's Management Corporation Web Developer/Administrator [EMAIL PROTECTED] -Original Message- From: Daniel Kaliel [mailto:[EMAIL PROTECTED] Sent: Friday, August 17, 2007 9:40 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Arr

[PHP-WIN] Array Question

2007-08-17 Thread Daniel Kaliel
I have pull a bunch of data from an SQL database through a query. The problem I am running into is I pull two fields with the exact same name. How do I grab the right info? I have been using mydata ß the array name. mydata['contactID'] Should I instead use the array value so mydata[8]?

RE: [PHP-WIN] Array question

2003-08-26 Thread Warren Vail
7;; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Array question Well its not exactly what I was looking for but you gave me some ideas, but still got this small problem: If I know the value in the array, say for example 49. Then I want to store the previous and next value in the array? I know the othe

RE: [PHP-WIN] Array question

2003-08-25 Thread Joachim
ROTECTED] Amne: [PHP-WIN] Array question If I have an array like this > [0] => 1 [1] => 2 [2] => 3 ... [99] => 100 If I want to select [50] => 51 and store the value that's 2 positions before and 1 position after, how can I do? If I want to know what position value 71 have?

RE: [PHP-WIN] Array question

2003-08-25 Thread Disko_kex
) then like you sad $dataarray($key+1), that's easy. But the other way -Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED] Sent: den 25 augusti 2003 09:33 To: Disko_kex; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Array question in my experience, using numeric indices to

RE: [PHP-WIN] Array question

2003-08-25 Thread Warren Vail
Warren Vail [EMAIL PROTECTED] -Original Message- From: Disko_kex [mailto:[EMAIL PROTECTED] Sent: Sunday, August 24, 2003 11:59 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Array question If I have an array like this > [0] => 1 [1] => 2 [2] => 3 ... [99] => 100 If I want

[PHP-WIN] Array question

2003-08-25 Thread Disko_kex
If I have an array like this > [0] => 1 [1] => 2 [2] => 3 ... [99] => 100 If I want to select [50] => 51 and store the value that's 2 positions before and 1 position after, how can I do? If I want to know what position value 71 have? I have search the PHP-manual and found some functions as

Re: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Aidal
gt; -Original Message- > --> From: Ben O'Neill [mailto:[EMAIL PROTECTED] > --> Sent: Tuesday, March 04, 2003 5:06 PM > --> To: [EMAIL PROTECTED] > --> Subject: Re: [PHP-WIN] ARRAY Question! > --> > --> > --> Using that it would be: > --> >

RE: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Matt Babineau
It's a numerical key so $myArray[] = "value"; will work perfectly! Thanks! --> -Original Message- --> From: Ben O'Neill [mailto:[EMAIL PROTECTED] --> Sent: Tuesday, March 04, 2003 5:06 PM --> To: [EMAIL PROTECTED] --> Subject: Re: [PHP-WIN] ARRAY Qu

Re: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Ben O'Neill
om: Matt Babineau [mailto:[EMAIL PROTECTED] > Sent: 04 March 2003 21:55 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] ARRAY Question! > > > Ok here goes! > > Lets say I have an array: > > $myArray = array(); > > Now lets say I am looping over something > > >

RE: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Chris Kranz
Sent: 04 March 2003 21:55 To: [EMAIL PROTECTED] Subject: [PHP-WIN] ARRAY Question! Ok here goes! Lets say I have an array: $myArray = array(); Now lets say I am looping over something How do I simply add a new value to the array?? I just want to start tacking on new key/value pai

[PHP-WIN] ARRAY Question!

2003-03-04 Thread Matt Babineau
Ok here goes! Lets say I have an array: $myArray = array(); Now lets say I am looping over something How do I simply add a new value to the array?? I just want to start tacking on new key/value pairs to the array. I must be missing something really basic, but I'm not getting it LOL