Location: PHPKode > projects > PHPmyEXIM > domain_overview.php
<?php
require("session.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>Main</title>
	<link rel=stylesheet type="text/css" href="global.css">
</head>
<body> 
<?php

require("config.php");
$tabelle = "domains";

/* Connection to the Database */ 
MYSQL_CONNECT($server, $user, $passw) or die ( "<H3>unable to connect to database server</H3>");
MYSQL_SELECT_DB($datenbank) or die ( "<H3>database does not exist</H3>");
$result=MYSQL_QUERY("select domain_name from $tabelle where domain_name not like 'masterdomain'");
$result1=MYSQL_QUERY("select domain_name from $tabelle where domain_name not like 'masterdomain'");

echo"
<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" align=\"center\">
<tr>
	<th colspan=2>Domain Overview</th>
</tr>
";

$row = mysql_fetch_row($result);
if($row[0] != "")
{
	while ($row1 = mysql_fetch_row($result1))
	{
	echo"
	<tr>
		<td width=\"50%\"  class=\"i\">$row1[0]</td><td align=right><a href=\"domain_edit.php?domain=$row1[0]\"><img src=\"images/edit.gif\" border=\"0\"></a>&nbsp;<a href=\"domain_delete.php?domain=$row1[0]\"><img src=\"images/delete.gif\" border=\"0\"></a></td>
	</tr>
	";
	}
}else
{	
echo"
<tr>
	<td>No Domains available</td><td class=\"tab\">&nbsp;</td>
</tr>
";
}
echo"<tr>
			<td colspan=2 align=\"center\"><a href=\"domain_create.php\"><img src=\"images/create_domain.gif\" border=\"0\"></a></td>
		</tr>";
echo"</table>";
echo"<p><u>Note:</u> When you delete a domain, all existing eMail-Accounts that belong to this domain will be deleted also.</p>";
?>
<p><a href="index.php" target="_top"><img src="images/logout.gif" border="0"></a></p>
</body>
</html>
Return current item: PHPmyEXIM