Hi Leute
schaut euch bitte erstmal an. www.edomainhandel.de
Links unten der Block Domains. Wie bekomme ich die Domainnamen in den Block rein??
Hier mal der Code
if (eregi("block-Domain.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
include_once("modules/domainseller/config_inc.php");
mysql_connect($mysqlhost,$mysqluser,$mysqlpass);
mysql_select_db($mysqlbase);
$result = mysql_query("SELECT ID, name FROM dsp_domains WHERE status=0 ORDER BY ID DESC LIMIT 5");
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
$content = printf (" %s Name: %s <br>", $row[0], $row[1], $row[2], $row[3], $row[4], $row[5])."<br>";
}
Hi oliver :)
mit $content = printf (" %s Name.... erzeugst Du direkt eine Ausgabe und speicherst nicht in die Variable $content.
Versuchs mal damit:
$content = "";
while ($row = mysql_fetch_array($result)) {
$content .= $row['id']. " Name: ".$row['name']."<br>";
}
danke hat auch auf anhieb geklappt. :thumbup:
Hab's gesehen :D