Hi,
I have a php page which logs date/time and username of members who log in to a database. I want to filter the results so the results for one member only can be viewed. Does anyone know how to filter the columns of a textfile?
any help appreciated
Is this what you mean?
$lines = file($text_file); foreach ($lines as $each_line) { if (strpos($each_line, 'Jim') !== false) { $jim_arr[] = $each_line; } }