Re: MDB2: Problems with insert using placeholders
| From: | Lukas Kahwe Smith | Date: | Mon, 30 Oct 2006 14:49:34 +0000 |
| Subject: | Re: MDB2: Problems with insert using placeholders | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25679@lists.php.net to get a copy of this message | ||
Mark Bailey wrote:
$sth = $this->db->prepare('INSERT INTO news_articles_unit_test (article_headline, article_text, date_inserted, date_modified) VALUES (?, ?, NOW(), NOW())', true, MDB2_PREPARE_MANIP);
i just looked at your code once more ..
the error is the second parameter .. it should be either null or an array of MDB2 types, like array('text', text).
regards,
Lukas