Onbekend |
|
hoe moet ik zorgen dat ik in dit script hieronder naar ?pagina=downloads&categorie="$obj->categorie_id" ga? (de link staat er al, maar ik moet nog de pagina ?pagina=downloads&categorie="$obj->categorie_id" in die pagina verwerken)
<?php
include "config.inc.php";
echo "<br>";
$res = mysql_query("SELECT id,categorie,bericht FROM download_categorieen");
while ($obj = mysql_fetch_object($res)) {
echo "<center><table border=0 width=95%><tr valign=top bgcolor=#F4F5FE><td width=10%><table border=0 width=95%><font face=tahoma size=1>";
echo "<a href=?pagina=downloads&categorie=";
echo $obj->id;
echo "><font color=#666666>";
echo $obj->categorie;
echo "</font></a>";
echo "</font></table></td></tr><tr bgcolor=#FFFFFF><td width=50%><table border=0 width=95%><font face=tahoma size=1>";
echo $obj->bericht;
echo "</font></table></td></tr></table></center>";
}
mysql_free_result($res);
?>
<?php include "config.inc.php"; $res = mysql_query("SELECT id,categorie,bericht FROM download_categorieen"); echo "<center><table border=0 width=95%><tr valign=top bgcolor=#F4F5FE><td width=10%><table border=0 width=95%><font face=tahoma size=1>"; echo "<a href=?pagina=downloads&categorie="; echo "><font color=#666666>"; echo "</font></table></td></tr><tr bgcolor=#FFFFFF><td width=50%><table border=0 width=95%><font face=tahoma size=1>"; echo "</font></table></td></tr></table></center>"; } ?>
en dan moet ?pagina=downloads&categorie=... dit zijn:
<?php
include "config.inc.php";
echo "<br>";
$res = mysql_query("SELECT id,download FROM downloads");
while ($obj = mysql_fetch_object($res)) {
echo "<center><table border=0 width=95%><tr valign=top bgcolor=#F4F5FE><td width=10%><table border=0 width=95%><font face=tahoma size=1>";
echo "<a href=?pagina=downloads&categorie=";
echo $obj->id;
echo "><font color=#666666>";
echo $obj->download;
echo "</font></a>";
echo "</font></table></center>";
}
mysql_free_result($res);
?>
<?php include "config.inc.php"; $res = mysql_query("SELECT id,download FROM downloads"); echo "<center><table border=0 width=95%><tr valign=top bgcolor=#F4F5FE><td width=10%><table border=0 width=95%><font face=tahoma size=1>"; echo "<a href=?pagina=downloads&categorie="; echo "><font color=#666666>"; echo "</font></table></center>"; } ?>
Dus ik wil dat alles in één pagina staat en dat als ik dus op die link druk van dat bovenste script, ik uitkom bij het onderste script.
|