4images Modifications / Modifikationen > Mods & Plugins (Requests & Discussions)
einige extras
(1/1)
MR:
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.
Bunny:
--- Code: ---
<?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?>
--- End code ---
So könnte man das machen. Aber ich lerne noch PHP und weiß jetzt nit ob das so doll gecodet ist.
Navigation
[0] Message Index
Go to full version