私の配列print_rは次のとおりです。
Array
(
[email] => xxx@cs.caddmu.edu
[attempt] => 0
[timestamp] => 1369676665
[smtp-id] => <1369676650.51a39b6a76cec@www.openaccesspub.org>
[response] => 451 4.2.0 Temporarily Grey listed. Try again in a couple of minutes
[category] => Invitation
[event] => deferred
)
Array
(
[email] => reidsdds@cs.cdsmu.edu
[timestamp] => 1369676845
[smtp-id] => <1369676650.51a39b6a76cec@www.openaccesspub.org>
[response] => 250 2.0.0 r4RHlOGH017661 Message accepted for delivery
[category] => Invitation
[event] => delivered
)
Array
(
[email] => jrai@openhh.com
[timestamp] => 1369678994
[smtp-id] => <1369678990.51a3a48e93428@ohhpb.org>
[category] => Reviewers
[event] => processed
)
Array
(
[email] => sss@lusst.fi
[timestamp] => 1369678997
[smtp-id] => <1369678990.51a3a48e93428@oub.org>
[response] => 250 2.0.0 Ok: queued as 02C103F0454
[category] => Revie
[event] => delivered
)
テーブルには次の行があります。
event_id、イベント、電子メール、カテゴリ、タイムスタンプ、応答、試行、URL、ステータス、理由、タイプ、アクション、m_id .
これでmysqlテーブルに挿入しようとしています:-
foreach ($temp_array as $key => $poke)
{
mysql_query ("INSERT INTO temp_array (email,timestamp,category,event,response,attempt,reason,o_id,operator,action,...)VALUES ('$poke[email]','$poke[timestamp]','$poke[category]','$poke[event]',.... )" );
}
しかし、エラー " Undefined index: category in
C:\xampp\htdocs\eembeta\array_temp.php on line 34
特定のシーケンスを持たないデータを挿入するには?