Created
October 1, 2014 22:40
-
-
Save jeffikus/2fe1317fac638e8c3ab6 to your computer and use it in GitHub Desktop.
WPDB Prepare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$wpdb->prepare( "SELECT post_title FROM $wpdb->posts WHERE ID = %d ", $ID ); | |
$wpdb->prepare( "DELETE FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = %s ", 420, 'Europe' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment