Hi all
i would like to:
1. make a form in html with a text box call it search
2.make a text file that contain property data. for example:
London,Detached,60000,Y,1
Manchester, semi detached, 10000,Y,3 and so on.
3. Display all property details below a maximum price (the user enters the price in a field on a static web form - the price is read in by the script and used to find the properties as the script reads through the property text file)
Can anyone HELP please??
Thank you
Please HELP with comma delimited text file
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
-
RobertPaul
- Forum Contributor
- Posts: 122
- Joined: Sun Sep 18, 2005 8:54 pm
- Location: OCNY
You're right ... but he might not have access to mySQL if he's on a host that doesn't offer it. Which is kinda strange, but they're out there.Hockey wrote:Use MySQL instead...you'll save tons of time...
Anyway ... pezhman, you'll need to get to know the Filesystem functions rather well. Particularly fgetcsv(). But really ... querying a db is going to be a hell of a lot faster. So like Hockey, I do suggest using SQL if at all possible. It's not all that complicated.