Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $ip = null;
  2. $user = null;
  3. $pass = null;
  4. $base = null;
  5.  
  6. foreach($$this->config['db']['surv'] as $arr) {
  7. foreach($arr as $key) {
  8.  
  9. $ip = $key['db_host'];
  10. $user = $key['db_user'];
  11. $pass = $key['db_pass'];
  12. $base = $key['db_base'];
  13.  
  14. }
  15. }
  16. }
  17. 'db' => array (
  18. 'surv' => array (
  19. 'db_host' => 'localhost',
  20. 'db_user' => 'root',
  21. 'db_pass' => '',
  22. 'db_base' => 'sr1'
  23. ),
  24. ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement