Support » Plugin: Top Position Yahoo Finance » top position yahoo finance

  • Hi all,

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/88/10579588/html/blog/wp-content/plugins/top-position-yahoo-finance/top-position-yahoo-finance.php on line 150 and defined in /home/content/88/10579588/html/blog/wp-includes/wp-db.php on line 992

    I couldn’t locate /home/conten/88/10579588/html/ directories

    is on /blog/wp-content/plugins/top-position-yahoo-finance/top-position-yahoo-finance.php (Godaddy website)

    Line 150:
    $credits = $wpdb->get_var($wpdb->prepare(“SELECT tpyf_symbol FROM ” . $table_name . ” WHERE tpyf_category=’credits’;”));

    Please help how to change this line? Thanks


Viewing 1 replies (of 1 total)
  • Satimis,

    Change the line to

    $credits = $wpdb->get_var($wpdb->prepare("SELECT tpyf_symbol FROM %s WHERE tpyf_category='credits';", $table_name));

    And it should work properly.

    Andrew Freeman

Viewing 1 replies (of 1 total)
  • The topic ‘top position yahoo finance’ is closed to new replies.