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.
“
Login to Admin panel Click on People Click on Roles and create Custom Role... read more
This can be achieved using a single query with join. We can... read more
How to check laravel version: Step1: Find Application.php file in your app and... 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
List of popular and most used search engines based on web research: ... read more
Try "keypress" evenHandler in jQuery: Notice Below Code, Although this code is correct... read more
In simple words, class is a user defined datatype. Which have its... read more
<!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- Optional... read more
Way 1: Campare two numbers and print the greater one =IF((10>20),"TEN","TWENTY"); Way 2: Subtract... read more
Procedure is same for windows versions, xp, vista, windows 7, windows 8,... read more
Leave a Reply