你能提供给我一些东西吗,如何推送两个不同但结构相同的表,我的意思是所有信息都是一样的,只是表名不同,mailings
而且mailings_archive
。一张桌子没问题
$query = sprintf("SELECT * FROM %smailings WHERE hidden=0 AND draft=1 %sORDER BY category_id, mailing_segment", $this->dbprefix, $language);
$this->mailings[] = array('id' => $row->id,
'mailing_naam' => $row->mailing_naam,
'mailing_subject' => $row->mailing_subject,
'mailing_from_name' => $row->mailing_from_name,
'mailing_bounceaddress' => $row->mailing_bounceaddress,
'mailing_body' => $row->mailing_body,
'mailing_status' => $row->mailing_status,
'mailing_segment' => $row->mailing_segment,
'mailing_total_subscribers' => $row->mailing_total_subscribers,
'mailing_total_sent' => $row->mailing_total_sent,
'category_id' => $row->category_id,
'utm_campaign' => $row->utm_campaign,
'language' => $row->language);
}
现在看起来是这样的,如何放入这个数组,另一个表数据?别忘了,每个字段都是一样的,只是表名不同。