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
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
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.
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]>
>
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
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):
6 matches
Mail list logo