[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 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 = 

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

2005-04-26 Thread Sebastien Pahud
Thanks David, Exactly what i was looking for ! Seb David Tucker wrote: I would do it like this : if (mysql_data_seek($result, $rownum)) $a_row = mysql_fetch_row($result); echo $a_row[$column_int]; --Codefox -Original Message- From: Sebastien Pahud [mailto:[EMAIL PROTECTED] Sent

Re: [PHP] beginnind and end of the week

2004-10-31 Thread Sebastien Pahud
Hi Jerry, I dunno if i got what you want to do... But i would say : 1. Set a number to each day of the week (0 = sunday, 1 = monday, 6 = saturday) 2. Get the date of today, so you can get the number of the day : $noDay 3. Do you SQL request from ($noDay + 1) to ($noDay-1) (just need to test if $