• I have to take the Metakey full_dolar that does not match metakey post_id of the table Postmeta and based on the Post_status publish and draft, accepted. That does not match table ID posts.

    $title = $_POST['post_title'];
            			$post_id = $_POST['post_id'];
    
            			$sim_dolar = "SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = 'full_dolar' = '{$title}' AND meta_key =  post_id != {$post_id } AND $wpdb->posts post_status = 'publish,draft' AND ID != {$post_id} " ;
    • This topic was modified 6 years, 6 months ago by bcworkz. Reason: code fixed - initial backtick must be in col 0
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I need to get the meta key meta value from the database’ is closed to new replies.