also das muss ja mit in die isp.php ?
PHP Code:
$sql="SELECT COUNT(*) FROM `sql_database` WHERE `domain_id`='".$dom_id."'";
// Wir wollen ja auch wissen wieviele angelegt wurden *grins*
$query = mysql_query($sql,$a);
$count=mysql_fetch_array($query);
echo "Datenbanken: ".$count[0]."<br />";
$sql="SELECT sqld_name FROM `sql_database` WHERE `domain_id`='".$dom_id."'";
$query = mysql_query($sql,$a);
while($ds3 = mysql_fetch_array($query))
{
echo $ds3['sqld_name']."<br />";
}
also meine isp.php sieht nun so aus
PHP Code:
<?php
include("_mysql.php");
$con = mysql_connect($host, $user, $pwd) or system_error('ERROR: Can not connect to ispCP MySQL-Server');
$sel = mysql_select_db($db, $con) or system_error('ERROR: Can not connect to database "webspell"');
$ds=mysql_fetch_array(mysql_query("SELECT domain FROM `".PREFIX."user` WHERE userID='".$_GET['uid']."' AND domain='".$_GET['domain']."'",$con));
$a = mysql_connect('localhost', 'root', 'sagichnit') or system_error('ERROR: Can not connect to ispCP MySQL-Server');
$b = mysql_select_db('ispcp', $a) or system_error('ERROR: Can not connect to database "ispcp"');
$ds2=mysql_fetch_array(mysql_query("SELECT * FROM `domain` WHERE `domain_name`='".$ds['domain']."'",$a));
// Ich hab absichtlich den Joker benutzt, um noch weitere Daten aus dieser Tabelle zu benutzen //
$dom_id = $ds2['domain_id'];
$status = $ds2['domain_status'];
echo "Informationen über Ihre Domain: ".$ds2['domain_name']."<br />";
echo "Domain ID: ".$dom_id."<br />";
echo "Status : ".$status."<br />";
mysql_close($a);
$sql="SELECT COUNT(*) FROM `sql_database` WHERE `domain_id`='".$dom_id."'";
// Wir wollen ja auch wissen wieviele angelegt wurden *grins*
$query = mysql_query($sql,$a);
$count=mysql_fetch_array($query);
echo "Datenbanken: ".$count[0]."<br />";
$sql="SELECT sqld_name FROM `sql_database` WHERE `domain_id`='".$dom_id."'";
$query = mysql_query($sql,$a);
while($ds3 = mysql_fetch_array($query))
{
echo $ds3['sqld_name']."<br />";
}
?>
dann steht es wie folgt da:
Informationen über Ihre Domain: zer-o.eu
Domain ID: 1
Status : ok
Warning: mysql_query(): 4 is not a valid MySQL-Link resource in /var/www/virtual/zer-o.eu/htdocs/isp2.php on line 25
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/virtual/zer-o.eu/htdocs/isp2.php on line 26
Datenbanken:
Warning: mysql_query(): 4 is not a valid MySQL-Link resource in /var/www/virtual/zer-o.eu/htdocs/isp2.php on line 29
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/virtual/zer-o.eu/htdocs/isp2.php on line 30