first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
class ModelExtensionModuleCallback extends Model {
|
||||
public function addCallback($data) {
|
||||
|
||||
$query = $this->db->query("INSERT INTO " . DB_PREFIX . "callback SET name = '" . $this->db->escape($data['name']) . "', telephone = '" . $this->db->escape($data['phone']) . "', date_added = NOW(), date_modified = NOW(), status_id = '0', comment = '" . $this->db->escape($data['comment']) . "'");
|
||||
|
||||
return $this->db->getLastId();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user