change variable when link is clicked
Posted: Sun May 02, 2010 1:41 pm
Hey
I'm have page that when it loads display all the records from a mysql database that contain the value "kitchen" in the field "department". I have a link called home and when its is clicked I want this to change so it display all records from the database with the value "garden" in the field "department". Is there a way to make a variable change when a link is clicked (<a> tag)?
Thanks for any help.
I'm have page that when it loads display all the records from a mysql database that contain the value "kitchen" in the field "department". I have a link called home and when its is clicked I want this to change so it display all records from the database with the value "garden" in the field "department". Is there a way to make a variable change when a link is clicked (<a> tag)?
Thanks for any help.