Links as a query point instead of form drop down box

From: Date: Thu, 17 May 2001 04:12:51 +0000
Subject: Links as a query point instead of form drop down box
Groups: php.general 
Request: Send a blank email to php-general+get-53157@lists.php.net to get a copy of this message
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 lmlweb@lmlweb.com T: (604) 872-6915 F: (425) 732-1547

« previous php.general (#53157) next »