aztec Posted July 27, 2010 Share Posted July 27, 2010 Hello I have a website that I am trying to upgrade so that all the data can be placed into a MySql database. I know what I need but I do not know if it is possible with PHP and MySql. I need to insert into a Href link a variable so that when the link is clicked it would initiate a MySql search for data. The variable would contain the Key id of the person whose name was clicked. This is very difficult to explain so a visit to the static website may help understand what I am trying to achieve, www.westonheritage.co.uk If you go to the second page by clicking the key then click on any of the surnames listed. I have the database setup on localhost and can get out the data I require. Kind regards Link to comment https://forums.phpfreaks.com/topic/209008-include-a-variable-into-a-href/ Share on other sites More sharing options...
trq Posted July 27, 2010 Share Posted July 27, 2010 This example I posted a long while ago should get you started. Link to comment https://forums.phpfreaks.com/topic/209008-include-a-variable-into-a-href/#findComment-1091698 Share on other sites More sharing options...
aztec Posted July 28, 2010 Author Share Posted July 28, 2010 Thanks Thorpe I have reworked the example you offered and it should give the basis of creating a MySql query that will suit my needs. Kind Regards Link to comment https://forums.phpfreaks.com/topic/209008-include-a-variable-into-a-href/#findComment-1092041 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.