0
私はwordpressのdbのカスタムテーブルの行を更新したいと思います。 しかし、いずれも機能しません。 何が問題なのか理解できません!ワードプレスでのクエリの更新
これらのクエリは実行されましたが、結果は表示されません。
$wpdb->update('wp_job' , array('translated_text' => '$persiantext','status'=> 1), array('lead_id' => '$this->sefaresh_id ', 'id' => '$this->job_id'));
$queryy=("UPDATE wp_job SET status=%d,translated_text=%s WHERE lead_id='$this->sefaresh_id' and id='$this->job_id';");
$wpdb->query($wpdb->prepare($queryy,1,$persiantext));
$wpdb->query("UPDATE
wp_job SET translated_text ='$persiantext' WHERE WHERE lead_id='$this->sefaresh_id' and id='$this->job_id'");
ありがとうございますが、このエラーが表示されます:wpdb :: prepare()の引数2が見つからない、C:\ xampp \ htdocs \ sahand \ wp-content \ plugins \ job-view \ chatModel.php C:\ xampp \ htdocs \ sahand \ wp-includes \ wp-db.phpに1246行で定義されています – faraa