[PHP] problem looping through records

2003-08-14 Thread Huzz
I have a sql statement which brings about 15 records... inside the while loop i am trying to get data from another table by passing an id, the problem is i am only getting the first record .. not the whole 15 records.. any suggestion?? function list_ss_cats(){ global $db; $sql = "SELECT DISTINCT(

Re: [PHP] problem looping through records

2003-08-14 Thread Curt Zirzow
* Thus wrote Huzz ([EMAIL PROTECTED]): > I have a sql statement which brings about 15 records... inside the while > loop i am trying to get data from another table by passing an id, the > problem is i am only getting the first record .. not the whole 15 records.. > > any suggestion?? > > function

Re: [PHP] problem looping through records

2003-08-14 Thread John W. Holmes
Huzz wrote: I have a sql statement which brings about 15 records... inside the while loop i am trying to get data from another table by passing an id, the problem is i am only getting the first record .. not the whole 15 records.. any suggestion?? function list_ss_cats(){ global $db; $sql = "SELEC

Re: [PHP] problem looping through records

2003-08-11 Thread Chris Shiflett
--- Huzz <[EMAIL PROTECTED]> wrote: > I have a sql statement which brings about 15 records... > inside the while loop i am trying to get data from another > table by passing an id, the problem is i am only getting > the first record .. not the whole 15 records.. The answer lies in your own code. Y

Re: [PHP] problem looping through records

2003-08-10 Thread David Otton
On Sun, 10 Aug 2003 22:11:09 +0100, you wrote: >I have a sql statement which brings about 15 records... inside the while >loop i am trying to get data from another table by passing an id, the >problem is i am only getting the first record .. not the whole 15 records.. > >any suggestion?? > >functi