4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: MR on June 09, 2002, 01:22:43 PM
-
ich würde gerne:
bei stats noch die anzahl der registrirten user und die anzahl der kommentare sehen.
eine user liste, wo alle user aufgelistet sind wäre auch cool.
-
<?php
define('ROOT_PATH', './');
include(ROOT_PATH.'config.php');
$dbank = mysql_connect($db_host, $db_user, $db_password);
if (! $dbank) die( "Keine Verbindung!");
mysql_select_db($db_name, $dbank) or die("Konnte Datenbank nicht öffnen:".mysql_error());
$com_sel = mysql_query( "SELECT * FROM ".$table_prefix."comments");
$anzahl = mysql_num_rows( $com_sel);
echo $anzahl;
mysql_close($dbank);
php?>
So könnte man das machen. Aber ich lerne noch PHP und weiß jetzt nit ob das so doll gecodet ist.