added nagging
This commit is contained in:
1 parent
0613f1c952
commit
edf3ab07ba
2 files changed
+43
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
require '../inside/credentials-sample.php';
|
||||
|
||||
$str = getDSN();
|
||||
|
||||
preg_match('|([^:]+)://([^:]+):([^@]+)@([^/]+)/(.+)|', $str, $output);
|
||||
|
||||
list($str, $driver, $user_name, $password, $host_name, $db_name) = $output;
|
||||
|
||||
if(!mysql_connect($host_name, $user_name, $password)) die("error connecting to db");
|
||||
if(!mysql_select_db($db_name)) die('error selecting databse');
|
||||
Reference in new issue
Block a user