MySQL interesse |
|
Hallo,
heb het ene probleem opgelost en de volgende is er alweer gekomen.
Ik krijg nu de volgende error:
Citaat: SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s)
en gebruik de volgende code:
public function indexAction()
{
include_once(APPLICATION_PATH . '/modules/news/models/news.php');
$news = new News();
$this->view->pageTitle = 'Home';
$this->view->fpNews = $news->fetchAll('SELECT
*,
DATE_FORMAT(news_date, "%d/%m/%Y") AS news_date
FROM
news');
}
public function indexAction() { include_once(APPLICATION_PATH . '/modules/news/models/news.php'); $news = new News(); $this->view->pageTitle = 'Home'; $this->view->fpNews = $news->fetchAll('SELECT *, DATE_FORMAT(news_date, "%d/%m/%Y") AS news_date FROM news'); }
Wie weet hoe ik dit kan oplossen .
Mvg,
Pascal
|