Lid |
|
Hey mensen,
Voor i mij nieuwe lay-out online zetten werkt mijn download script nog maar nu niet meer.
Hetr gaat dus om dit. als je hier heen gaat kan je een subcategorie kiezen: http://www.fifa...mp;catID=1 maar als je er op een klikt dan zie je niks terwijl er zeker wel iets in staat.
Hier het script
<font color='#ffffff' size='1' face='Arial, Verdana, Helvetica, sans-serif'>
<?php
include('config.php');
$catID = $_GET['catID'];
$subcatID = $_GET['subcatID'];
// nu de gegevens er zijn gaan we verbinding maken.
$result = mysql_query("select * from categorie");
while ($row = mysql_fetch_object($result)) {
}
mysql_free_result($result);
$quer = mysql_query("SELECT * FROM categorie"); $aanta = mysql_num_rows($quer);
if (!$show) {
$tsel1 = mysql_query("select * from subcategorie WHERE catID='$catID' order by subcatnaam ASC");
while ($cats1 = mysql_fetch_array($tsel1)) {
$tselsic = mysql_query("select * from files where fileid='$cats1[subcatID]'");
$aantalsic = mysql_num_rows($tselsic);
$aantalsic = mysql_num_rows($tselsic);
print "
<table>
<tr>
<td width='10%' align='left' valign='top'><div align='top'><img src='$cats1[subcatavatar]' border='0' align='top'> </div>
<br>
</td>
<td><a href=index2.php?feu=sub&subcatID=$cats1[subcatID]&show=yes><b>$cats1[subcatnaam] </b> <font color='#FFFFFF' size='2'>($aantalsic)</font></a><br>
<font color='#000000' size='1'><i>$cats1[subcatbeschrijving]</i></td></tr></table>";
}
}
include('config.php');
$subcatID = $HTTP_GET_VARS['subcatID'];
$tsel11 = mysql_query("select * from files where fileid='$subcatID'");
$aantal11 = mysql_num_rows($tsel11);
if ($show == yes && $aantal11 !="0") {
$tsel = mysql_query("select * from files where fileid='$subcatID'");
while ($cats = mysql_fetch_array($tsel)) {
$files .= "<a href='index2.php?feu=file&id=$cats[id]&sub=reacties'><font color='#FFFFFF' size='2'><b>$cats[titel]</a></b><br>
<font color='#000000' size='1'><i>".nl2br(afkorten($cats[beschrijving],80))."</i><br>";
}
print "
<table>
<tr>
<td width='10%' align='left' valign='top'><div align='top'> <img src='graphics/avatars/easports.gif' border='0' align='top'> </div>
<td width='80%'>
$files
</td>
</tr>
</table>
";
} elseif ($show == yes && $aantal11 == "0") {
$tsel = mysql_query("select * from files where fileid='$subcatID'");
while ($cats = mysql_fetch_array($tsel)) {
$files .= "Helaas, geen files in deze categorie.<br>
<a href=\"javascript:history.back(1)\">Klik hier oim terug te gaan.</a>";
}
print "
<table>
<tr>
<td width='10%' align='left' valign='top'><div align='top'> <img src='graphics/avatars/easports.gif' border='0' align='top'> </div>
<td width='80%'>
$files
</td>
</tr>
</table>
";
}
?>
<font color='#ffffff' size='1' face='Arial, Verdana, Helvetica, sans-serif'> <?php include('config.php'); $catID = $_GET['catID']; $subcatID = $_GET['subcatID']; // nu de gegevens er zijn gaan we verbinding maken. } if (!$show) { $tsel1 = mysql_query("select * from subcategorie WHERE catID='$catID' order by subcatnaam ASC"); $tselsic = mysql_query("select * from files where fileid='$cats1[subcatID]'"); <table> <tr> <td width='10%' align='left' valign='top'><div align='top'><img src='$cats1[subcatavatar]' border='0' align='top'> </div> <br> </td> <td><a href=index2.php?feu=sub&subcatID=$cats1[subcatID]&show=yes><b>$cats1[subcatnaam] </b> <font color='#FFFFFF' size='2'>($aantalsic)</font></a><br> <font color='#000000' size='1'><i>$cats1[subcatbeschrijving]</i></td></tr></table>"; } } include('config.php'); $subcatID = $HTTP_GET_VARS['subcatID']; $tsel11 = mysql_query("select * from files where fileid='$subcatID'"); if ($show == yes && $aantal11 !="0") { $tsel = mysql_query("select * from files where fileid='$subcatID'"); $files .= "<a href='index2.php?feu=file&id=$cats[id]&sub=reacties'><font color='#FFFFFF' size='2'><b>$cats[titel]</a></b><br> <font color='#000000' size='1'><i>".nl2br(afkorten ($cats[beschrijving ],80))."</i><br>"; } <table> <tr> <td width='10%' align='left' valign='top'><div align='top'> <img src='graphics/avatars/easports.gif' border='0' align='top'> </div> <td width='80%'> $files </td> </tr> </table> "; } elseif ($show == yes && $aantal11 == "0") { $tsel = mysql_query("select * from files where fileid='$subcatID'"); $files .= "Helaas, geen files in deze categorie.<br> <a href=\"javascript:history.back(1)\">Klik hier oim terug te gaan.</a>"; } <table> <tr> <td width='10%' align='left' valign='top'><div align='top'> <img src='graphics/avatars/easports.gif' border='0' align='top'> </div> <td width='80%'> $files </td> </tr> </table> "; } ?>
Hopeljk zien jullie de fout, avb
|