
March 16th, 2012, 02:20 PM
|
|
Registered User
|
|
Join Date: Mar 2012
Posts: 1
Time spent in forums: 18 m
Reputation Power: 0
|
|
|
I have a similar problem, except:
I have 2 tables, one called users which consists of id, name, distance (which in this instance say distance is set at 500)
I then have another table called location, this has id, name, distance in it and lets say for example this data
id=1, location=london, Distance=50
What i need to do is when a user logs in, they select the location from the drop down menu which is populated from the table, this then in turn takes 50 (distance) from the users distance (leaving 450)
Has anyone got a code example I could study to try and work this out?
|