I want to create a link that will only show data with that is listed under a certain city
lets say that the link is showing the city “Madison”.
I want to show only the database information that has the city listed as “Madison”.
I have created a search box that will do this but I can’t figure out the hyperlink to do so
Here is the search box code…
The form
[code]
[php]require ‘db.php’;
$city=$_GET[‘city’];
$sql = (“SELECT * FROM posting,state WHERE city=’$city’ ORDER BY posting_id DESC”);
$result = mysql_query($sql);
echo "//…You shouldn’t need the rest as this part works great[/php]
How do I go about getting the hyperlink to return the same result by just clicking the city?