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.
“
$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
There are certain formal settings (like a conference, meeting or classroom) where... read more
Following Code is required for that: echo $this->Html->image("your_img.png", array( 'url' => array('controller' => 'some_controller',... read more
A recent research report has revealed that more than 90% of all... read more
Have you ever read emailed somebody and spent time wondering whether they... read more
Below are the steps: 1) Open File Explorer 2) Click on View Tab 3) Click/Check... read more
If you are a victim of Browser Modifier Virus ( malware ) Browser... read more
Login to Admin panel Click on People Click on Roles and create Custom Role... read more
After a lots of headache, I find the solutions. I am using... read more
Procedure is same for windows versions, xp, vista, windows 7, windows 8,... read more
Leave a Reply