* +--------------------------------------------------------------------+
* | CiviCRM version 4.7 |
* +--------------------------------------------------------------------+
- * | Copyright CiviCRM LLC (c) 2004-2016 |
+ * | Copyright CiviCRM LLC (c) 2004-2017 |
* +--------------------------------------------------------------------+
* | This file is a part of CiviCRM. |
* | |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
* $Id$
*
*/
private function _insert(&$dao) {
if (self::ADD_TO_DB) {
if (!$dao->insert()) {
- echo "ERROR INSERT: " . mysql_error() . "\n";
+ echo "ERROR INSERT: " . mysqli_error($dao->getConnection()->connection) . "\n";
print_r($dao);
exit(1);
}
private function _update(&$dao) {
if (self::ADD_TO_DB) {
if (!$dao->update()) {
- echo "ERROR UPDATE: " . mysql_error() . "\n";
+ echo "ERROR UPDATE: " . mysqli_error($dao->getConnection()->connection) . "\n";
print_r($dao);
exit(1);
}