好的,我希望用MailChimp发送每周预定的电子邮件.该电子邮件将包含其订户的最新20个库存清单(车库的汽车库存清单).
我似乎无法像想象的那样使用RSS提要工作,所以我想知道是否还有其他方法可以将每个格式化的HTML(在PHP文件中)放入MailChimp模板的主体中?
非常感谢.
我希望有人可以提供帮助.
我确定它只是一个简单的,我出于某种原因无法解决.
基本上我有一个类来处理我的所有数据库函数(连接,选择,插入,更新).
在select函数中,我返回一个数组.
public function getAll($table, $cols, $where, $limit, $order) {
// Set the query variables
if($cols == '') {
$cols = '*';
}
if($where!='') {
$where = ' WHERE '.$where;
}
if($limit!= '') {
$limit = ' LIMIT '.$limit;
}
if($order!='') {
$order = ' ORDER BY '.$order;
}
// Make the query string
$sql = 'SELECT '.$cols.' FROM '.$table.$where.$order.$limit;
//echo $sql;
// Set the query
$news_qry = mysql_query($sql);
// Set the array
$rows = array();
// Run …
Run Code Online (Sandbox Code Playgroud)