Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Jim Lucas
tsys.com > > > > > -Original Message----- > From: Dollah Ihsan [mailto:dollah.ih...@gmail.com] > Sent: Friday, March 06, 2009 3:04 PM > To: Anton Heuschen > Cc: php-general@lists.php.net > Subject: Re: [PHP] Assign 2 values from Mysql to an array > &g

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Michael A. Peters
Anton Heuschen wrote: This might sound trivial, but for the live of me cant seem to get it to work, and I am not familiar with such a thing. What I have is a query lets say : select country,name,population from USERS where id= 'some_id' "; Now I want to assign the result to one set (The abov

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Jochem Maas
PJ schreef: > Shawn McKenzie wrote: >> Dollah Ihsan wrote: >> >>> I'm sorry if this is not what you're talking about... >>> >>> /** >>> * assume your table structure just like this. >>> * table: users >>> * | id | country| name | population | >>> *

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Jochem Maas
Anton Heuschen schreef: > This might sound trivial, but for the live of me cant seem to get it to > work, and I am not familiar with such a thing. seems like you've done your best to make it sound as confusing as possible, this happens sometimes when you no longer see the wood for the trees :-) >

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread PJ
Shawn McKenzie wrote: > Dollah Ihsan wrote: > >> I'm sorry if this is not what you're talking about... >> >> /** >> * assume your table structure just like this. >> * table: users >> * | id | country| name | population | >> * ---

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Shawn McKenzie
Dollah Ihsan wrote: > I'm sorry if this is not what you're talking about... > > /** > * assume your table structure just like this. > * table: users > * | id | country| name | population | > * -- > * | 1 |

RE: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Chetan Rane
94033 66714 | Tel: +91 (0832) 30 79014 Innovation in software product design, development and delivery- www.persistentsys.com -Original Message- From: Dollah Ihsan [mailto:dollah.ih...@gmail.com] Sent: Friday, March 06, 2009 3:04 PM To: Anton Heuschen Cc: php-general@lists.php.net S

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Dollah Ihsan
I'm sorry if this is not what you're talking about... /** * assume your table structure just like this. * table: users * | id | country| name | population | * -- * | 1 |Texas | Fort Worth |4000