2010-05-06 00:08:41 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once('../login/config.php');
|
|
|
|
|
|
|
|
function getDomainInfo($domainId)
|
|
|
|
{
|
|
|
|
global $DBHost, $DBUserName, $DBPassword, $DBName;
|
|
|
|
|
2014-01-26 09:31:47 +00:00
|
|
|
$nelDb = mysql_connect($DBHost, $DBUserName, $DBPassword) or die("can't connect to nel db");
|
|
|
|
mysql_select_db ($DBName, $nelDb) or die("can't select nel db");
|
|
|
|
$query = "SELECT * FROM domain WHERE domain_id = '".$domainId."'";
|
|
|
|
$result = mysql_query ($query) or die("query ".$query." failed");
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2014-01-26 09:31:47 +00:00
|
|
|
if (mysql_num_rows($result) == 0)
|
2010-05-06 00:08:41 +00:00
|
|
|
{
|
|
|
|
die("Can't find row for domain ".$domainId);
|
|
|
|
}
|
|
|
|
|
2014-01-26 09:31:47 +00:00
|
|
|
$domainInfo = mysql_fetch_array($result);
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
return $domainInfo;
|
|
|
|
}
|
2014-01-26 09:31:47 +00:00
|
|
|
|
|
|
|
?>
|