Pass value from database into URL

Hi,

I’m very new to learning PHP so please be patient :wink:

I have a URL from a website that looks like this:

http://www.saa.gov.uk/search.php?SEARCHED=1&SEARCH_TERM=X&ASSESSOR_ID=&SEARCH_TABLE=council_tax

I need to insert a property post code into this between ‘1&SEARCH_TERM=’ and ‘&ASSESSOR_ID’ (where the X is) and then the user clicks the link and is taken to the website where the post code is used to fill out a search form.

If you click the details tab then ‘click here’ you will see what I mean:
http://www.gpmproperty.com/sitedev/index.php/gpmproperties?view=property&id=11:mollanbowie-road-balloch

The post codes are stored in a database (column = postcode, type = VARCHAR).

How would I get the postcode from the database and populate the URL with it.

Any info to get me started would be helpful.

thanks,

Stephen.

Solved.

Sponsor our Newsletter | Privacy Policy | Terms of Service