Re: [PHP] object/array with repeating values (WORKS)

2001-02-20 Thread Jared Howard
doff, I knew there had to be a simple answer. Works great, thanks. At 02:26 PM 2/21/01 +1300, Simon Garner wrote: >From: "Jared Howard" <[EMAIL PROTECTED]> > >> I'm make an object or an array from the results of a query to my MySQL >> database. The value returned is entered in s and any repeate

[PHP] object/array with repeating values

2001-02-20 Thread Jared Howard
I'm make an object or an array from the results of a query to my MySQL database. The value returned is entered in s and any repeated values are unwanted. Is there a way to remove them easily? eg. this?> I was thinking of creating an array before the while, then in the while add each "$r->t

Re: [PHP] object/array with repeating values

2001-02-20 Thread Simon Garner
From: "Jared Howard" <[EMAIL PROTECTED]> > I'm make an object or an array from the results of a query to my MySQL > database. The value returned is entered in s and any repeated > values are unwanted. Is there a way to remove them easily? > > eg. > > while ($r = mysql_fetch_object($qid)) {