Просмотр файла dotwidgeta/admin/connect_db.php

Размер файла: 760B
<?php



function connect_db()	{



global $db_host, $db_name, $db_user, $db_pw, $dbcnx;

$msg =  "<P>The mySQL database database is temporarily unavailable. ";

$msg .= "Please contact the site's administrator, who would be well-advised to check these configuration settings:<ul>";

$msg .= "<li>Database Host";

$msg .= "<li>Database Name";

$msg .= "<li>User Name";

$msg .= "<li>Database Password</ul>";

$msg .= "<p>The administrator can refer to the readme.txt he or she received with this distribution.</p>";



$dbcnx = @mysql_connect($db_host, $db_user, $db_pw);



	if (!$dbcnx) {



		echo($msg . mysql_error());



		}



	mysql_select_db($db_name) or die("Unable to connect to the database");



}



connect_db();



?>