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.
“
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
Most popular browsers like Google Chrome and Mozilla Firefox allow you to... read more
The regex caused the error during validation check on Alphaspace Rules regular... read more
The character set named utf8 uses a maximum of three bytes per... read more
Simple structure to pin the flow to developers mind for project IS ... read more
In simple words, class is a user defined datatype. Which have its... read more
Procedure is same for windows versions, xp, vista, windows 7, windows 8,... read more
After a lots of headache, I find the solutions. I am using... read more
Leave a Reply