I understand how to use a dropdown box to make your selection in which that
selection is the criteria to display a database content; but I was wondering
how I can achieve a query by link.

For example, if you went to index.html file where there is a php coding that
generates the categories available (arrays) and outputs:

<a href="showdata.php">Apples</a>
<a href="showdata.php">Oranges</a>
<a href="showdata.php">Bananas</a>

If you click on apples, it will send a query to the database to show all
listings under the category "apples". (SELECT category FROM FRUITS WHERE
category=apples)

how would I add the query criteria to the link? and how would I set up
showdata to take the information from the selected link?

thanks in advance,

Laurie M. Landry
<lmlweb> Design & Development

www.lmlweb.com
[EMAIL PROTECTED]

T: (604) 872-6915
F: (425) 732-1547


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to