小编Kan*_*ell的帖子

想给MailChimp动态内容?

好的,我希望用MailChimp发送每周预定的电子邮件.该电子邮件将包含其订户的最新20个库存清单(车库的汽车库存清单).

我似乎无法像想象的那样使用RSS提要工作,所以我想知道是否还有其他方法可以将每个格式化的HTML(在PHP文件中)放入MailChimp模板的主体中?

非常感谢.

html php email dynamic mailchimp

6
推荐指数
2
解决办法
1万
查看次数

如何迭代数组数组

我希望有人可以提供帮助.

我确定它只是一个简单的,我出于某种原因无法解决.

基本上我有一个类来处理我的所有数据库函数(连接,选择,插入,更新).

在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)

php mysql arrays oop foreach

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

php ×2

arrays ×1

dynamic ×1

email ×1

foreach ×1

html ×1

mailchimp ×1

mysql ×1

oop ×1