The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Select Featured Posts
Error with WP 3.5: wpdb::prepare() (1 post)

  1. sathishshaz
    Posted 3 years ago #

    Is there something in which anyone can help me? I got this code from theme-functions.php

    // get all the custom field labels so we can match the field_name up against the post_meta keys
    $sql = $wpdb->prepare("SELECT field_label, field_name, field_type FROM ". $wpdb->prefix . "cp_ad_fields");

    warning like this
    Warning: Missing argument 2 for wpdb::prepare(), called in C:\xampp\htdocs\classi\wordpress\wp-content\themes\ClassiPress\includes\theme-functions.php on line 314 and defined in C:\xampp\htdocs\classi\wordpress\wp-includes\wp-db.php on line 990

    What to change in this?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Select Featured Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic