function tooltip_form_post() { // Insert the data in our plugin's table $connection = DBConnectionClass::newInstance(); $var = $connection->getOsclassDb(); $conn = new DBCommandClass($var); $sql = sprintf("INSERT INTO %st_tooltip (e_color) VALUES (%d, '%s', '%s', '%s')", DB_TABLE_PREFIX, Params::getParam('color')); $conn->query($sql); $error_num = $conn->getErrorLevel(); if ($error_num > 0) { throw new Exception($conn->getErrorLevel() . ' - ' . $conn->getErrorDesc()); } }
/** * Returns a string description of the last error for the most recent MySQLi function call * * @access public * @since 2.3 * @return string */ function getErrorDesc() { return $this->dao->getErrorDesc(); }