ik heb nu dit
<?php
session_start();
require("includes/vars.inc.php");
require("includes/functions.inc.php");
require("includes/templates.inc.php");
require("includes/apt_functions.inc.php");
$access_level=$access_matrix['battle_stats'][0];
db_connect();
check_login_member();
if(isset($_SESSION['user_id'])){
$myuser_id = $_SESSION['user_id'];}
else {$myuser_id = "";}
global $relative_path;
$tpl = new phemplate(_TPLPATH_,'remove_nonjs');
if (isset($_SESSION['topass']) && is_array($_SESSION['topass']) && !empty($_SESSION['topass'])) {
$topass=$_SESSION['topass'];
$_SESSION['topass']='';
unset($_SESSION['topass']);
$comment=$topass['comment'];
}
$message=((isset($topass['message'])) ? ($topass['message']) : (""));
$limitzoid= "10"; // -> change this
$table_cols= "5"; // -> change this
$offset = "0";
$set = "10";
if(isset($_GET['offset']) == ""){
$offset = "0";
}
if(isset($_GET['offset'])){
$offset = $_GET['offset'];
$offset2 = $offset;
}
$select = "SELECT * FROM partners ORDER by inhits DESC";
$query = mysql_query($select) or die (mysql_error());
$tippytop="<table width=\"100%\" cellpadding=\"0\" cellspacing=\"1\" align=\"center\" valign=\"top\">";
$tippytop.="</table><center><p><table border=0><tr><td align=left valign=middle><font color=\"#000066\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">
<table border='0' width='100%'>
<tr>
<td><b>Naam:</b></td>
<td><b>Inhits:</b></td>
<td><b>Uithits:</b></td>
</tr>
<?
while ($list = mysql_fetch_object($query)) {
$sitenaam = $list->sitenaam;
$siteurl = $list->siteurl;
$sitenaam = htmlspecialchars('$sitenaam');
$siteurl = htmlspecialchars('$siteurl')";
$tippytop.="<tr>
<td><a href=\"uithits.php?action=tel&id=$list->id\" target=\"_blank\">$list->sitenaam</a></font> <br>
<td>$list->inhits</td>
<td>$list->uithits</td>
</tr>";
?>
<?php
$tippytop.="</table></table></center>\n";
unset($x, $WinPercent);
$tpl->set_var('tippytopz',$tippytop);
$tpl->set_file('middlecontent','battletop.html');
$tpl->set_var('message',$message);
$tpl->set_var('sitename',_SITENAME_);
$middle_content=$tpl->process('out','middlecontent',0,1);
$title = "Top Photo Battle";
$tpl->set_file('frame','frame.html');
$tpl->set_var('baseurl',_BASEURL_);
$tpl->set_var('sitename',_SITENAME_);
$tpl->set_var('relative_path', $relative_path);
$tpl->set_var('middle_content',$middle_content);
include('block_main_frame.php');
?>
voorbeeld
http://www.iboobs.nl/alle_partners.php
zoals je ziet haalt ie niet de waardes uit het script en laat ze ook niet zien
mvg
justin