すくすくゴートうちゃん Android 版(黒歴史)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.mod.php 342 B

123456789101112131415161718192021
  1. <?php
  2. class
  3. Common
  4. {
  5. var $db;
  6. function
  7. __construct ()
  8. {
  9. $config = include (__DIR__ . '/config.php');
  10. $db_host = $config['host'];
  11. $db_port = $config['port'];
  12. $db_user = $config['user'];
  13. $db_pass = $config['pass'];
  14. $this -> db = new mysqli ($db_host, $db_user, $db_pass, 'goatoh_training', $db_port);
  15. }
  16. }