Re: MySQL - How to transfer a query resault into a variable?
| From: | Ignacio Vazquez-Abrams | Date: | Wed, 17 Jan 2001 01:36:55 +0000 |
| Subject: | Re: MySQL - How to transfer a query resault into a variable? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34943@lists.php.net to get a copy of this message | ||
On Wed, 17 Jan 2001, SED wrote:
> Hi,
>
> Lets say I have columns e.g.
>
> | name | address | phone |
>
> I want to make a list of all the names and put the result into a HTML page
> where each name is a link.
>
> When the name is clicked (the link), it will open another HTML page with
> full information (name, address and phone).
>
> I know how to send the query to list the names (and into a formatted
> HTML-file), but I don't know how to put each name into a variable or a link
> for the next step.
>
> Can you point me to functions I should focus at or even a solution?
>
> Regards,
> Sumarlidi Einar Dadason
>
> SED - Graphic Design
>
> ------------------------------------------
> Phone: (+354) 4615501
> Mobile: (+354) 8960376
> Fax: (+354) 4615503
> E-mail: sed@sed.is
> Homepage: www.sed.is <- New Homepage!
> ------------------------------------------
>
You have to give the table a key field (autoincrement primary) that you can
use as a handle to pass to the next page.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>