How to run, execute insert query in Drupal 8
“There may be several other possible ways, but I know one simple one and sticked to it.
$db = \Drupal::database();
$db->insert($table_name)->fields($fields_array_key_value_pair)->execute();
Thats it.
“
“There may be several other possible ways, but I know one simple one and sticked to it.
$db = \Drupal::database();
$db->insert($table_name)->fields($fields_array_key_value_pair)->execute();
Thats it.
“
Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their... read more
Most popular browsers like Google Chrome and Mozilla Firefox allow you to... read more
$this->db->insert('users', $data); # where $data is an array $insert_id = $this->db->insert_id(); # insert_id()... read more
List of popular and most used search engines based on web research: ... read more
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
It requires two main steps: Add Virtual Host Entries to vhosts Configuration file. Assign... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
Procedure is same for windows versions, xp, vista, windows 7, windows 8,... read more
Leave a Reply