0

このテーブルにシリアル化された形式で格納されているデータを検索したい。

テーブル構造

ここに画像の説明を入力

為に

meta_key - mgm_member_options

メタ値 -

a:31:{s:2:"id";s:1:"1";s:13:"custom_fields";a:6:{s:10:"first_name";s:5:"管理者"; s:9:"姓";s:5:"バジル";s:7:"住所";s:0:"";s:4:"都市";s:0:"";s:5: "state";s:0:"";s:3:"zip";s:0:"";}s:22:"other_membership_types";a:0:{}s:12:"payment_info";a :0:{}s:6:"クーポン";a:0:{}s:7:"アップグレード";a:0:{}s:6:"延長";a:0:{}s:4 :"コード";s:10:"mgm_member";s:4:"名前";s:10:"メンバー ライブラリ";s:11:"説明";s:10:"メンバー ライブラリ";s:7 :"設定";a:0:{}s:6:"節約";s:1:"1";s:8:"試用中";s:1:"0";s:10:"試用費用" ;s:1:"0";s:14:"試行期間";s:1:"0";s:19:"trial_duration_type";s:1:"d";s:16:"trial_num_cycles";s:1:"0";s:8:"期間";s:1:"0" ;s:13:"duration_type";s:1:"m";s:6:"金額";s:1:"0";s:8:"通貨";s:3:"USD";s :9:"join_date";s:0:"";s:13:"last_pay_date";s:0:"";s:11:"expire_date";s:0:"";s:15:"membership_type ";s:5:"guest";s:6:"status";s:8:"Inactive";s:12:"payment_type";s:0:"";s:13:"autoresponder";s :0:"";s:10:"購読済み";s:0:"";s:9:"rss_token";s:32:"af8214c978dedcaa066bd8c223b7d22d";s:13:"user_password";s:16:" m9ROVxRwfxWwJzti";}s:1:"d";s:16:"trial_num_cycles";s:1:"0";s:8:"期間";s:1:"0";s:13:"duration_type";s: 1:"m";s:6:"金額";s:1:"0";s:8:"通貨";s:3:"米ドル";s:9:"参加日";s:0: "";s:13:"last_pay_date";s:0:"";s:11:"expire_date";s:0:"";s:15:"membership_type";s:5:"guest";s :6:"ステータス";s:8:"非アクティブ";s:12:"支払いタイプ";s:0:"";s:13:"自動応答";s:0:"";s:10:"購読";s:0:"";s:9:"rss_token";s:32:"af8214c978dedcaa066bd8c223b7d22d";s:13:"user_password";s:16:"m9ROVxRwfxWwJzti";}s:1:"d";s:16:"trial_num_cycles";s:1:"0";s:8:"期間";s:1:"0";s:13:"duration_type";s: 1:"m";s:6:"金額";s:1:"0";s:8:"通貨";s:3:"米ドル";s:9:"参加日";s:0: "";s:13:"last_pay_date";s:0:"";s:11:"expire_date";s:0:"";s:15:"membership_type";s:5:"guest";s :6:"ステータス";s:8:"非アクティブ";s:12:"支払いタイプ";s:0:"";s:13:"自動応答";s:0:"";s:10:"購読";s:0:"";s:9:"rss_token";s:32:"af8214c978dedcaa066bd8c223b7d22d";s:13:"user_password";s:16:"m9ROVxRwfxWwJzti";}duration";s:1:"0";s:13:"duration_type";s:1:"m";s:6:"amount";s:1:"0";s:8:"currency" ;s:3:"USD";s:9:"join_date";s:0:"";s:13:"last_pay_date";s:0:"";s:11:"expire_date";s:0 :"";s:15:"membership_type";s:5:"guest";s:6:"status";s:8:"Inactive";s:12:"payment_type";s:0:"" ;s:13:"autoresponder";s:0:"";s:10:"subscribed";s:0:"";s:9:"rss_token";s:32:"af8214c978dedcaa066bd8c223b7d22d";s:13 :"user_password";s:16:"m9ROVxRwfxWwJzti";}duration";s:1:"0";s:13:"duration_type";s:1:"m";s:6:"amount";s:1:"0";s:8:"currency" ;s:3:"USD";s:9:"join_date";s:0:"";s:13:"last_pay_date";s:0:"";s:11:"expire_date";s:0 :"";s:15:"membership_type";s:5:"guest";s:6:"status";s:8:"Inactive";s:12:"payment_type";s:0:"" ;s:13:"autoresponder";s:0:"";s:10:"subscribed";s:0:"";s:9:"rss_token";s:32:"af8214c978dedcaa066bd8c223b7d22d";s:13 :"user_password";s:16:"m9ROVxRwfxWwJzti";}join_date";s:0:"";s:13:"last_pay_date";s:0:"";s:11:"expire_date";s:0:"";s:15:"membership_type";s: 5:"guest";s:6:"status";s:8:"Inactive";s:12:"payment_type";s:0:"";s:13:"autoresponder";s:0:" ";s:10:"subscribed";s:0:"";s:9:"rss_token";s:32:"af8214c978dedcaa066bd8c223b7d22d";s:13:"user_password";s:16:"m9ROVxRwfxWwJzti";}join_date";s:0:"";s:13:"last_pay_date";s:0:"";s:11:"expire_date";s:0:"";s:15:"membership_type";s: 5:"guest";s:6:"status";s:8:"Inactive";s:12:"payment_type";s:0:"";s:13:"autoresponder";s:0:" ";s:10:"subscribed";s:0:"";s:9:"rss_token";s:32:"af8214c978dedcaa066bd8c223b7d22d";s:13:"user_password";s:16:"m9ROVxRwfxWwJzti";}購読";s:0:"";s:9:"rss_token";s:32:"af8214c978dedcaa066bd8c223b7d22d";s:13:"user_password";s:16:"m9ROVxRwfxWwJzti";}購読";s:0:"";s:9:"rss_token";s:32:"af8214c978dedcaa066bd8c223b7d22d";s:13:"user_password";s:16:"m9ROVxRwfxWwJzti";}

郵便番号を知りたいです。SQLクエリを使用してこれを行うにはどうすればよいですか?

私が使用しているクエリ

if(isset($_GET['as_zip']) && !empty($_GET['as_zip'])){ $as_zip = $_GET['as_zip'];
array_push($meta_query_array, array('key' => 'mgm_member_options', 'value' => $as_zip, 'compare' => '=')); } // 引数を準備 $args = array( 'role' => $role, 'number' => '10', 'orderby' => 'display_name', 'fields' => 'all_with_meta', 'meta_query' => $meta_query_array );

4

0 に答える 0