Untitled
raw download clone
TEXT
views 27
,
size 325 b
function products_to_thursday(){
    global $wpdb;
    global $post;
    $id = $post->ID;
    $query = "SELECT ID from wp_czwartek where ID='".$id."'";
    $result = $wpdb->query($query);
    $total_rows = $wpdb->num_rows;
    if($total_rows>0){
        return true;
    }
    else{
        return false;
    }
}
close fullscreen
Login or Register to edit or fork this paste. It's free.