我按顺序创建页面:日期(第1小组(新闻1新闻2))。数据单独工作,但是当它们在一个面板中的两个故事一起复制时。像这样:
当面板中的数据单独存在时,它不会重复:
Foreach倍增数据:
<?php foreach ($dados_programacao_painel as $key => $programacao_painel) { ?>
<?php
$sql_conteudo = "SELECT programacao.*, programacao_traducao.* FROM programacao JOIN programacao_traducao on (programacao.programacao_id = programacao_traducao.programacao_id)WHERE programacao_traducao.idioma_id = :idioma_id AND programacao.painel_id = '".$programacao_painel['painel_id']."' AND programacao.ativo = 1";
$dados_bind_conteudo = array('idioma_id'=>$idioma_id_atual);
$dados_programacao_conteudo = $db->query($sql_conteudo, $dados_bind_conteudo);
...
<?php } ?>
我想带来按面板分组的新闻。有人可以帮帮我吗?