webjunkie
05-18-2008, 12:43 AM
ok I am just a hobbist programer so bear with me please. I am tring to make a search I use php 4.1 and msqle 3.2 if that matters. here is my problem
in table 1 I have a text field called area_codes it is listed like this
931, 723, 716 ect for each entry
in table 2 I have a table that has area codes and zipcodes I need form that searchs table 2 for a zipcode then determains the area codes that zip is in. then it take that area code and counts the number of times it shows up in table 1..
Question 1: can it be done?
question 2: I dont expect anyone to whip up the code for me (would be very nice but let be relistic I am not a paying customer lol) but can some give me a hint or link to such a search. I can not seem to locate one. This is probley due to me not know the proper terms to search for.
Any clues would be helpful thanks
in table 1 I have a text field called area_codes it is listed like this
931, 723, 716 ect for each entry
in table 2 I have a table that has area codes and zipcodes I need form that searchs table 2 for a zipcode then determains the area codes that zip is in. then it take that area code and counts the number of times it shows up in table 1..
Question 1: can it be done?
question 2: I dont expect anyone to whip up the code for me (would be very nice but let be relistic I am not a paying customer lol) but can some give me a hint or link to such a search. I can not seem to locate one. This is probley due to me not know the proper terms to search for.
Any clues would be helpful thanks