WordPress.org

Ready to get started?Download WordPress

Forums

I have a problem with wpdb (3 posts)

  1. Daniel Sorin
    Member
    Posted 1 year ago #

    Hello i have a problem with wpdb

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/moviemro/public_html/wp-content/themes/Moviem/tagging.php on line 33 and defined in /home/moviemro/public_html/wp-includes/wp-db.php on line 990

    My code is :

    $first_char = $_GET["litera"];
    
    $postids=$wpdb->get_col($wpdb->prepare("
    
    SELECT      ID
    
    FROM        $wpdb->posts
    
    WHERE       SUBSTR($wpdb->posts.post_title,1,1) = %s
    
    ORDER BY    $wpdb->posts.post_title",$first_char));
    
    }

    I don't know how make it,please help me

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Try adding to your wp-config.php the following code:
    define( 'WP_TEMP_DIR' , ABSPATH . 'wp-content/' );

    Read: http://wordpress.org/support/topic/troubleshooting-wordpress-35-master-list?replies=4#post-3547427

  3. Daniel Sorin
    Member
    Posted 1 year ago #

    code does not work because it's for "Error message: Download failed. Destination directory for file streaming does not exist or is not writable." , I read "this" but do not know how do . Pease anybody help me .

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.