Re: [PHP] Selecting a special row from the database

2007-05-04 Thread Alister Bulman
On 04/05/07, Marcelo Wolfgang [EMAIL PROTECTED] wrote: I'm building a news display page for a website, and since the user has 2 ways to arrive there, I want to know if this is possible: 1) the user arrive at news.php I will run a query at the db, and get the latest news to be the main one

RE: [PHP] Selecting a special row from the database

2007-05-04 Thread Edward Kay
-Original Message- From: Marcelo Wolfgang [mailto:[EMAIL PROTECTED] Sent: 04 May 2007 14:37 To: php-general@lists.php.net Subject: [PHP] Selecting a special row from the database Hi all, I'm building a news display page for a website, and since the user has 2 ways to arrive

RE: [PHP] Selecting a special row from the database

2007-05-04 Thread Edward Kay
-Original Message- From: Alister Bulman [mailto:[EMAIL PROTECTED] Sent: 04 May 2007 15:07 To: php-general@lists.php.net Subject: Re: [PHP] Selecting a special row from the database On 04/05/07, Marcelo Wolfgang [EMAIL PROTECTED] wrote: I'm building a news display page

Re: [PHP] Selecting a special row from the database

2007-05-04 Thread Fredrik Thunberg
Edward Kay skrev: -Original Message- From: Marcelo Wolfgang [mailto:[EMAIL PROTECTED] Sent: 04 May 2007 14:37 To: php-general@lists.php.net Subject: [PHP] Selecting a special row from the database Hi all, I'm building a news display page for a website, and since the user has 2

RE: [PHP] Selecting a special row from the database

2007-05-04 Thread Edward Kay
-Original Message- From: Fredrik Thunberg [mailto:[EMAIL PROTECTED] Sent: 04 May 2007 15:31 To: Edward Kay Cc: php-general@lists.php.net Subject: Re: [PHP] Selecting a special row from the database Edward Kay skrev: -Original Message- From: Marcelo Wolfgang [mailto

Re: [PHP] Selecting a special row from the database

2007-05-04 Thread Emmanuel Raulo-Kumagai
Edward Kay a écrit : -Original Message- From: Fredrik Thunberg [mailto:[EMAIL PROTECTED] Sent: 04 May 2007 15:31 To: Edward Kay Cc: php-general@lists.php.net Subject: Re: [PHP] Selecting a special row from the database Edward Kay skrev: -Original Message- From: Marcelo

Re: [PHP] Selecting a special row from the database

2007-05-04 Thread Richard Lynch
On Fri, May 4, 2007 8:36 am, Marcelo Wolfgang wrote: I'm building a news display page for a website, and since the user has 2 ways to arrive there, I want to know if this is possible: 1) the user arrive at news.php I will run a query at the db, and get the latest news to be the main one

RE: [PHP] Selecting a special row from the database

2007-05-04 Thread Richard Lynch
On Fri, May 4, 2007 9:26 am, Edward Kay wrote: what I want is to separate the news that the user want to see ( the id=XX one ) from the others rows, can someone advice me ? Here is the code I have so far, I hope it serve as a better explanation than mine! ? $newsId = $_GET['id']; /* if