V
V
Volgarastraport2018-06-01 15:43:58
Database
Volgarastraport, 2018-06-01 15:43:58

WordPress - how to get data from database?

The simplest task.
In the widget, WP placed a search field:

<form method="get" id="searchform" action="">
<input type="text" name="destination" id="destination" value="" />
<input type="submit" id="searchsubmit" value="GO" />
</form>

Now you need to search for a unique entered string in a given column in a given table and display the corresponding URL value from the found row and open this link in a new window.
Sorry for the confusion, but the meaning seems to be clear.
The simplest task, it’s easy in PHP, but it’s under WP that I can’t google anything for an hour.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Zakharov, 2018-06-01
@cashalot

This is the $wpdb function. Here is the link https://codex.wordpress.org/Class_Reference/en:wpd...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question