skip to Main Content

php mysql multiquery does not return result – Phpmyadmin

I am trying to execute the following. public function result_multi($sql) { try { mysqli_multi_query($this->db_connection,$sql); $result=mysqli_store_result($this->db_connection); $row=mysqli_fetch_row($result); } $b=new DB; $sql="INSERT INTO payout (mid, type, datetime) VALUES ('0','BC', NOW());SELECT LAST_INSERT_ID();"; $b->result_multi($sql); $row returns NULL and $result return FALSE, however when I…

VIEW QUESTION

Drupal 8 is not connecting to Mysql in Docker – Phpmyadmin

Directories structure of durpal 8: . ├── docker-compose.yml ├── dump │   └── drupal.sql ├── sessions └── www └── core └── site └── modules └── vendor └── index.php My settings.php database configuration $databases['default']['default'] = array ( 'database' => 'drupal', 'username' =>…

VIEW QUESTION
Back To Top
Search