[PHP] Re: sorting and searching an Array

2002-07-17 Thread Monty
This would be MUCH MUCH easier to do if this data were in a database instead of a flat file. But, to accomplish this you need to write some code using the various array functions in PHP, such as asort() and explode(), and structures such as for() and each() to eliminate the array rows that don't m

[PHP] Re: sorting and searching an Array

2002-07-17 Thread Dan Koken
Unless I'm missing something, why put it in an array. Why not just just select the data from the data base that matches your search_name and list it. Something like: SELECT e_mail, name FROM e_mail_file WHERE name = '$search_name' ORDER by name HTH. Dan. [EMAIL PROTECTED] wrote: > After I r