Re: [PHP] help gurus: multi-dimensional array problem.

2001-03-05 Thread Robert Vetter
Tim Ward wrote: > > Get a list of unique categories then get a list of each one would do it. > > $link_id = mysql_connect($host, $usr, $pass) or die (mysql_error()); > mysql_select_db($database, $link_id); > $sql="select distinct category from links"; > $result

RE: [PHP] help gurus: multi-dimensional array problem.

2001-03-05 Thread Tim Ward
mail-disclaimer.html > -Original Message- > From: andrew [mailto:[EMAIL PROTECTED]] > Sent: 03 March 2001 19:59 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] help gurus: multi-dimensional array problem. > > > Because I want to display it like

Re: [PHP] help gurus: multi-dimensional array problem.

2001-03-05 Thread Robert Vetter
andrew wrote: > > Because I want to display it like this: > > category1 (href anchor to category1 below) > category2 > category3 > > category1 > link1 > link2 > link3 > > category2 > link1 > etc... > Hello, Ever heard of mysql_data_seek()? Have a look in the PHP Docs.

Re: [PHP] help gurus: multi-dimensional array problem.

2001-03-03 Thread andrew
Because I want to display it like this: category1 (href anchor to category1 below) category2 category3 category1 link1 link2 link3 category2 link1 etc... On 3/3/01 2:49 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Addressed to: andrew <[EMAIL PROTECTED]> >

Re: [PHP] help gurus: multi-dimensional array problem.

2001-03-03 Thread php3
Addressed to: andrew <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from andrew <[EMAIL PROTECTED]> Sat, 03 Mar 2001 14:26:30 -0500 > > help! :)> > > I'm trying to return a list of links under associated categories from a > database table that has the fields: "linkID, catego

[PHP] help gurus: multi-dimensional array problem.

2001-03-03 Thread andrew
help! :)> I'm trying to return a list of links under associated categories from a database table that has the fields: "linkID, category, name, url". I'm selecting the fields and then trying to construct a multi-dimensional array so that the correct items get put into it (and then printed out):