[PHP] how to read a specific cell

2005-04-26 Thread Sebastien Pahud
Hello, I cannot figure out how to read a specific cell in a result i got from a SQL request. I have a SQL request on a database: SELECT nameAttribute, fr, de, en FROM traduction WHERE nameTable = 'whatever' AND idTable = 1 ORDER BY nameAttribute and i am suppose to get something like this :

Re: [PHP] how to read a specific cell

2005-04-26 Thread Brian V Bonini
On Tue, 2005-04-26 at 17:05, Sebastien Pahud wrote: Hello, I cannot figure out how to read a specific cell in a result i got from a SQL request. I have a SQL request on a database: SELECT nameAttribute, fr, de, en FROM traduction WHERE nameTable = 'whatever' AND idTable = 1 ORDER BY

Re: [PHP] how to read a specific cell

2005-04-26 Thread Sebastien Pahud
Brian V Bonini wrote: On Tue, 2005-04-26 at 17:05, Sebastien Pahud wrote: Hello, I cannot figure out how to read a specific cell in a result i got from a SQL request. I have a SQL request on a database: SELECT nameAttribute, fr, de, en FROM traduction WHERE nameTable = 'whatever' AND idTable

RE: [PHP] how to read a specific cell

2005-04-26 Thread David Tucker
Subject: Re: [PHP] how to read a specific cell Brian V Bonini wrote: On Tue, 2005-04-26 at 17:05, Sebastien Pahud wrote: Hello, I cannot figure out how to read a specific cell in a result i got from a SQL request. I have a SQL request on a database: SELECT nameAttribute, fr, de, en FROM

Re: [PHP] how to read a specific cell

2005-04-26 Thread Joseph Connolly
seb, it would help to post the actual table structure jozef Sebastien Pahud wrote: Hello, I cannot figure out how to read a specific cell in a result i got from a SQL request. I have a SQL request on a database: SELECT nameAttribute, fr, de, en FROM traduction WHERE nameTable = 'whatever'

[PHP] [SOLVED] Re: [PHP] how to read a specific cell

2005-04-26 Thread Sebastien Pahud
: Tuesday, April 26, 2005 5:52 PM To: php-general@lists.php.net Subject: Re: [PHP] how to read a specific cell Brian V Bonini wrote: On Tue, 2005-04-26 at 17:05, Sebastien Pahud wrote: Hello, I cannot figure out how to read a specific cell in a result i got from a SQL request. I

Re: [PHP] how to read a specific cell

2005-04-26 Thread Stuart Nielson
Sebastian, just a guess, but maybe when you do $table['de'] it is assuming the first element in the array. i.e. $table['de'][0]. Perhaps if you tried $table['de'][2] it might work. Just an idea. Also, how does your code look to convert the result set to an array? That might help to decipher

Re: [PHP] how to read a specific cell

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 2:05 pm, Sebastien Pahud said: \ I cannot figure out how to read a specific cell in a result i got from a SQL request. http://php.net/mysql_result You don't want to use that a hundred times instead of mysql_fetch_row, but it's fine for what you want. If you are only