added nagging

This commit is contained in:
oyvinbak committed 2011-03-04 12:14:27 +01:00
1 parent 0613f1c952
commit edf3ab07ba
2 files changed
+43

No files matched your search

+12
View File
@@ -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');