Why file?

January 30, 2004 by Kutt Niinepuu
First and foremost, if you say you're using MySQL, why don't you use the database for queries? But related to the script you posted here - the answer must lie in some of the scripts include files - there must be a function to handle the form data (search string). But given that the script simply looks for the keyword in the text file, there is no way to filter out the unwanted row without specifying additioanl criteria in the search form. It would make sense to include a radio group or drop down menu, where you specify the field which to search from, ie Search "Dallas" and select "City" from the options. But based on the code and information you gave, Ican't help you further.