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.
“
Best method to change Laravel's default timestamps: Step 1: Override const in specific... read more
This can be achieved using a single query with join. We can... read more
The regex caused the error during validation check on Alphaspace Rules regular... read more
$this->db->insert('users', $data); # where $data is an array $insert_id = $this->db->insert_id(); # insert_id()... read more
Fork a Repo. A fork is a copy of a repository. Forking... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
After a lots of headache, I find the solutions. I am using... read more
BrowserModifier:Win32/Neobar is malware which changes various browser data without notifying you. Windows... read more
Below are the steps: 1) Open File Explorer 2) Click on View Tab 3) Click/Check... read more
Leave a Reply
You must be logged in to post a comment.