You are here

function hostingService_db_mysql::insert in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 db_server/hosting_db_server.service.inc \hostingService_db_mysql::insert()
  2. 7.3 db_server/hosting_db_server.service.inc \hostingService_db_mysql::insert()

Overrides hostingService::insert

File

db_server/hosting_db_server.service.inc, line 49
Provide the hosting serivce classes for database integration.

Class

hostingService_db_mysql
A MySQL specific db service implementation class.

Code

function insert() {
  parent::insert();
  db_query("INSERT INTO {hosting_db_server} (vid, nid, db_user, db_passwd) \n      VALUES (%d, %d, '%s', '%s')", $this->server->vid, $this->server->nid, $this->db_user, $this->db_passwd);
}