Parašė FoDD· 2008 Gru. 10 15:12:47
#5
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
openside("Svetaines statistika")
echo "<hr>
<b>Svetainės Statistika:</b><br>";
$result = dbquery("SELECT count(news_id) FROM ".$db_prefix."news");
echo "° Naujienų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(article_id) FROM ".$db_prefix."articles");
echo "° Straipsnių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "° Siuntinių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(photo_id) FROM ".$db_prefix."photos");
echo "° Nuotraukų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(weblink_id) FROM ".$db_prefix."weblinks");
echo "° Forumo pranešimų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(comment_id) FROM ".$db_prefix."comments");
echo "° Komentarų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
echo "° Šaukyklos pranešimų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(poll_id) FROM ".$db_prefix."polls");
echo "° Apklausų: [".dbresult($result, 0)."]<br>";
closeside();
require_once "side_right.php";
require_once "footer.php";
Pabandyk toki sukurti ir pavadink Svetaines statistika.php Ir per tinklalapio nuorodas pabandyk ikelti
Redagavo FoDD· 2008 Gru. 10 15:12:02