12345678910111213141516171819202122232425262728293031323334 |
- <?
- /**
- * $link можно получить с помощью \app\models\Doctrine::getLink()
- * В топку функциАнальное программирование
- */
- $test['host']='dmatter.net';
- $test['db']='promsystem_test';
- $test['user']='promsystem';
- $test['pass']='PrmSystem212';
- $dmatter['host']='dmatter.net';
- $dmatter['db']='promsystem2';
- $dmatter['user']='promsystem';
- $dmatter['pass']='PrmSystem212';
- $auth = $dmatter;
- //$auth = $local;
- //$auth = $handy;
- //function mysqlConnect()
- //{
- // global $db_hostname, $db_username, $db_password, $db_name, $auth, $dmatter;
- $db_hostname=$auth['host'];
- $db_username=$auth['user'];
- $db_password=$auth['pass'];
- $db_name=$auth['db'];
-
- $link = mysqli_connect($db_hostname,$db_username,$db_password);
-
- mysqli_select_db($link, $db_name);
- mysqli_query($link,"SET NAMES utf8");
- mysqli_query($link,"SET time_zone = '+03:00';");
- //mysql_query("SET lc_time_names = 'ru_RU'");
- //}
|