Support » Plugin: Top Position Yahoo Finance » Version error on wp_prepare

Viewing 2 replies - 1 through 2 (of 2 total)
  • please also share with us, How you did?
    Thanks & regards

    Change

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

    to

    $credits =
            $wpdb->get_var(
                $wpdb->prepare(
                    "SELECT tpyf_symbol FROM " . $table_name . " WHERE tpyf_category='%s';",'credits'
                )
            );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Version error on wp_prepare’ is closed to new replies.