Jump to content

Read CSV and Search between a range.


twilliamson

Recommended Posts

I have a Csv file with the lo range and the hi range, the street name, zipcode and the school district number

 

low,high,streetname,zipcode,schooldistrist

100,300,Apple Ave,29070,3

I need to "search" this file. I dont have a sql server available so i would like to keep it flat file.

 

Im trying to have a user enter a address say in three html text boxes [267] [Apple Ave] [29070] and use php to display something like this

100-300 Apple Ave 29070 District 3....

 

I dont know where to start. I have written to csv from php but reading is confusing me.

Tripp

[email protected]

 

Link to comment
https://forums.phpfreaks.com/topic/145103-read-csv-and-search-between-a-range/
Share on other sites

Could someone show me some code. I want to start by searching the range of street numbers.

 

intStreet

 

if {([0]< intStreet)

        if {([0]< intStreet)

Print Line

}

elses { move to next line}

}

else

    {move to next line} 

Make any since?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.