Jump to content

Help required adding data to web page


araah

Recommended Posts

Hi guys, im totally new to this PHP coding and creating websites in general. I am more of a web site designer, whowever i have become more interested in coding and making websites in general. I thought its a great time to start now as i am in hospital with a broken leg amongst other things and need something to pass my time instead of moping around.

 

So, i have created a website with a wysiwyg website builder. Now the problem i am facing is that i cannot for the life of me teach myself how to code a search field in which once data has been entered and the search button has been clicked, it recalls data 'listings' and displays them. As you would understand this is the simple part. I want it to bring up listing according to relevance. Here is an example of exactly what im trying to do:

 

http://www.tesco.com/storeLocator/

 

If you click on that link: tesco store locator... you should be able to see what i mean. Please input L152HU as a post code.

I dont require the map etc, all i require is the 'Search by town or postcode to find a Tesco store near you:' field in which once the post code has been entered the data is then displayed according to which store is nearest to you.

 

Is there anyone who can help me get a start on how to do this... or where i can find a template code for this? As i cannot continue my project without creating this page.

 

All help will greatly be appreciated,

 

Many Thanks

 

 

Link to comment
Share on other sites

1st requirement : database with 2 tables:

 

postcode, easting, northing

store, easting, northing

 

(OS eastings and northings are simpler than lat and long - all you need is subtraction to get distance)

 

Once postcode is submitted, query the database and list results

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.