![]() |
Counting Bans Problem - Won't Show
Well I created my own page, /ban.php and I created a template for it.
The problem is, in the php file I have this Code:
// Count the total bans I've run the query in phpmyadmin and it works fine and returns 45. The problem comes when I'm using my template, I use this Code:
Total Bans: $totalbans Thanks in advance. |
Quote:
Code:
// Count the total bans The method query_first_slave returns the first row as an array - even if there is only one element. |
Ah, didn't work ;-( I tried like 50 different codes last night. Well now I'm glad the code is right but tere is something wrong. It doesn't display the number.
My msn is twolvesfan624@msn.com and aim is twolvesfan369, I think my problem lies with something else. Treat be as a noob to this. I think I'm forgetting a vital step. By the way I used this tutorial to create a new page. https://vborg.vbsupport.ru/showthrea...+your+own+page Edit, so here is my php code Code:
<?php Code:
$stylevar[htmldoctype] |
Quote:
Code:
eval('$navbar = "' . fetch_template('navbar') . '";'); |
Quote:
Edit: How can I display an array? IE: Display all the ban id's and say the reason. |
for anyone who doesnt know, this is what he wants to do
http://forums.facepunchstudios.com/showbans.php? |
All times are GMT. The time now is 03:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|