ASP interesse |
|
Beste mensen,
Ik heb een vraag. Kijk ik heb dit: http://www.carriere-manager.nl/top15.php . Als je dan op een team klikt moet hij info van dat team weergeven. MAar hij geeft dan van alle team weer. dit zijn de scripts:
top15.php
<?
ob_start();
session_start();
include("functies.php");
$var = "iedereen";
$toegang = beveiliging($var);
$ban = ban();
if(!$toegang == 0) {
if(!$ban == 1) {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Carriere-Manager :: Top 15</title>
</head>
<body>
<font size="2"><strong>Top 15 teams</strong></font>
<table width="336" cellspacing="0" cellpadding="0">
<tr>
<td width="36"><font size="2"><strong>Land</strong></font></td>
<td width="133"><font size="2"><strong>Naam</strong></font></td>
<td width="100"><font size="2"><strong>Punten
<?
$tp_sql = "SELECT id, clubnaam, punten, land FROM leden ORDER BY punten DESC LIMIT 15";
$tp_res = mysql_query($tp_sql);
while($tp = mysql_fetch_assoc($tp_res)) {
?>
</strong></font></td>
<td width="65"><font size="2"><strong> </strong></font></td>
</tr>
</table>
<table width="334" height="18" cellpadding="0" cellspacing="0">
<tr>
<td width="36"><strong><font size="2"><strong><img src="<? echo $tp['land']; ?>" alt="image" name="button" width="18" height="12" /></strong></font>
</strong></td>
<td width="132"><font size="2"><strong><a href="team.php?teamnr=<? echo $tp['id']; ?>"><? echo $tp['clubnaam']; ?></strong></font></td>
<td width="99"><font size="2"><strong><? echo $tp['punten']; ?>
<?
}
?>
</strong></font></td>
<td width="65"><font size="2"><strong> </strong></font></td>
</tr>
</table>
<p> </p>
<p> </p><p> </p></body>
</html>
<?
} else {
$sql = "SELECT * FROM ban WHERE ip='".$_SERVER['REMOTE_ADDR']."'";
$res = mysql_query($sql);
$fet = mysql_fetch_assoc($res);
$mes = $fet['mes'];
echo $mes;
}
} else {
echo "U bent niet bevoegd om deze pagina te bekijken";
}
ob_end_flush();
?>
<? include("functies.php"); $var = "iedereen"; $toegang = beveiliging($var); $ban = ban(); if(!$toegang == 0) { if(!$ban == 1) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Carriere-Manager :: Top 15</title> </head> <body> <font size="2"><strong>Top 15 teams</strong></font> <table width="336" cellspacing="0" cellpadding="0"> <tr> <td width="36"><font size="2"><strong>Land</strong></font></td> <td width="133"><font size="2"><strong>Naam</strong></font></td> <td width="100"><font size="2"><strong>Punten <? $tp_sql = "SELECT id, clubnaam, punten, land FROM leden ORDER BY punten DESC LIMIT 15"; ?> </strong></font></td> <td width="65"><font size="2"><strong> </strong></font></td> </tr> </table> <table width="334" height="18" cellpadding="0" cellspacing="0"> <tr> <td width="36"><strong><font size="2"><strong><img src=" <? echo $tp['land']; ?>" alt="image" name="button" width="18" height="12" /></strong></font> </strong></td> <td width="132"><font size="2"><strong><a href="team.php?teamnr= <? echo $tp['id']; ?>"> <? echo $tp['clubnaam']; ?></strong></font></td> <td width="99"><font size="2"><strong> <? echo $tp['punten']; ?> <? } ?> </strong></font></td> <td width="65"><font size="2"><strong> </strong></font></td> </tr> </table> <p> </p> <p> </p><p> </p></body> </html> <? } else { $sql = "SELECT * FROM ban WHERE ip='".$_SERVER['REMOTE_ADDR']."'"; $mes = $fet['mes']; } } else { echo "U bent niet bevoegd om deze pagina te bekijken"; } ?>
team.php:
<?
ob_start();
session_start();
include("functies.php");
$var = "iedereen";
$toegang = beveiliging($var);
$ban = ban();
if(!$toegang == 0) {
if(!$ban == 1) {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Carriere-Manager :: Team <? echo $tp['clubnaam']; ?></title>
</head>
<body>
<p><font size="2"><strong>
<?
$tp_sql = "SELECT id, clubnaam, land FROM leden";
$tp_res = mysql_query($tp_sql);
while($tp = mysql_fetch_assoc($tp_res)) {
?>
</strong></font></p>
<table width="329" height="70" cellpadding="0" cellspacing="0">
<tr>
<td width="43"><strong><font size="2"> Team:</font></strong></td>
<td width="24"><strong><font size="2"><strong><img src="<? echo $tp['land']; ?>" alt="image" name="button" width="18" height="12" />
</strong></font></strong></td>
<td width="175"><strong><? echo $tp['clubnaam']; ?></strong></td>
<td width="85"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong><font size="2">Spelers:</font></strong></td>
<td> </td>
<td><font size="2"><strong>Dit team heeft nog geen spelers
<?
}
?>
</strong></font></td>
<td> </td>
</tr>
</table>
<p> </p>
<p> </p></body>
</html>
<?
} else {
$sql = "SELECT * FROM ban WHERE ip='".$_SERVER['REMOTE_ADDR']."'";
$res = mysql_query($sql);
$fet = mysql_fetch_assoc($res);
$mes = $fet['mes'];
echo $mes;
}
} else {
echo "U bent niet bevoegd om deze pagina te bekijken";
}
ob_end_flush();
?>
<? include("functies.php"); $var = "iedereen"; $toegang = beveiliging($var); $ban = ban(); if(!$toegang == 0) { if(!$ban == 1) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Carriere-Manager :: Team <? echo $tp['clubnaam']; ?></title> </head> <body> <p><font size="2"><strong> <? $tp_sql = "SELECT id, clubnaam, land FROM leden"; ?> </strong></font></p> <table width="329" height="70" cellpadding="0" cellspacing="0"> <tr> <td width="43"><strong><font size="2"> Team:</font></strong></td> <td width="24"><strong><font size="2"><strong><img src=" <? echo $tp['land']; ?>" alt="image" name="button" width="18" height="12" /> </strong></font></strong></td> <td width="175"><strong> <? echo $tp['clubnaam']; ?></strong></td> <td width="85"> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><strong><font size="2">Spelers:</font></strong></td> <td> </td> <td><font size="2"><strong>Dit team heeft nog geen spelers <? } ?> </strong></font></td> <td> </td> </tr> </table> <p> </p> <p> </p></body> </html> <? } else { $sql = "SELECT * FROM ban WHERE ip='".$_SERVER['REMOTE_ADDR']."'"; $mes = $fet['mes']; } } else { echo "U bent niet bevoegd om deze pagina te bekijken"; } ?>
Bedankt voor de hulp:cool:
|