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.
“
The character set named utf8 uses a maximum of three bytes per... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
In simple words, class is a user defined datatype. Which have its... read more
While Google is quite generous in giving each user a lot of... read more
"Add this in your component public function initialize(Controller $controller) { $this->controller = $controller;... read more
After a lots of headache, I find the solutions. I am using... read more
Create a DIR in your laravel app root and name it "myapp", you... read more
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... 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
Leave a Reply