R
R
RuAleksandr2014-09-21 19:20:37
PHP
RuAleksandr, 2014-09-21 19:20:37

How to implement a search in a CSV table using PHP?

I must say right away that this is my first acquaintance with PHP, do not scold too much
Given: csv file with the following content:

PetyaSidorov[email protected]79009009090395NIMQ20:09:47 / 09.20.14
VasyaPetrov[email protected]79008008080123gret20:09:56 / 09.20.14
KolyaIvanov[email protected]79007007070557DZDD07:09:17 / 09.20.14

It is necessary: ​​Organize a search in column D (although it is possible in the entire table) variable $tel and if the variable is found, then send it to the HTML page ohibka.html, and if not, then ... .
I understand that the task is very simple, but I've been trying for an hour to make it work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2014-09-21
@RuAleksandr

Make an import into mysql and pull out the necessary data with a sql query.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question