A
A
Alex Kova2019-03-29 10:22:33
PHP
Alex Kova, 2019-03-29 10:22:33

Ajax search in php file on server without DB?

There is an ordinary made-up page, there is no Database.
It is necessary in the search bar that the user starts typing the name of the course and he is given a link to the course data, what is found!
For example, "English" and "English for adults", "English for children" already falls out.
On the server, there are just a list of links in some php document.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Adamos, 2019-03-29
@Adamos

Take "some kind of PHP document", rip out "link - title" pairs from it.
Export this data to a json file.
In PHP, load this file and build a list from it.
At the front, you fasten autocomplete, using the same json file as a data source.

J
JohnnyMnemonik, 2019-03-30
@JohnnyMnemonik

Like this for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question