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.
“
Simple structure to pin the flow to developers mind for project IS ... read more
Following Code is required for that: echo $this->Html->image("your_img.png", array( 'url' => array('controller' => 'some_controller',... read more
As per official bootstrap documentation about "sr-only CSS class": Always add labels Screen readers... read more
While Google is quite generous in giving each user a lot of... read more
After a lots of headache, I find the solutions. I am using... read more
This can be achieved using a single query with join. We can... read more
$this->session->mark_as_flash('item'); # Version 3.x only $this->session->mark_as_flash(array('item', 'item2')); # Version 3.x only Array to... read more
The regex caused the error during validation check on Alphaspace Rules regular... read more
Fix spanish translations (email sent sep 10) login mods (email sent march 2) add... read more
Way 1: Campare two numbers and print the greater one =IF((10>20),"TEN","TWENTY"); Way 2: Subtract... read more
Leave a Reply