V
V
Vladimir Kulikov2020-07-09 21:12:17
WordPress
Vladimir Kulikov, 2020-07-09 21:12:17

Why is the database search not working?

hello i have a code

$wpdb->get_results( "SELECT post_id from $wpdb->postmeta WHERE meta_key = '$results_id' AND meta_value = '".$add_id_iico2."'", ARRAY_A )


A unique product id is inserted into $add_id_iico2. Next, this id is used to search for another id from the wp database.
I used to get id $results_id[0]['post_id'] , but now it doesn't work for some reason.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question