PHP interesse |
|
Dit is mijn script:
<?php
include ("include/include.php");
std_header();
//categorieen selecteren
$gbc_query = "SELECT * FROM akties_cat ORDER BY sort";
$gbc_exec = mysql_query($gbc_query);
while ($gbc_result = mysql_fetch_array($gbc_exec)) {
$gbc_id = $gbc_result["id"];
$gbc_naam = $gbc_result["naam"];
echo "<table width=450 style='border-style: solid; border-color: #CCCCCC; border-width: 1;' cellpadding=0 cellspacing=0 align=center><tr><td> <b>".$gbc_naam."</b></td></tr></table><br>
<table width=450 style='border-style: solid; border-color: #CCCCCC; border-width: 1;' cellpadding=0 cellspacing=0 align=center>";
//bijbehorende links selecteren
$gbu_query = "SELECT * FROM akties_url WHERE cat='$gbc_id' AND status != 'wachtrij' ORDER BY naam DESC";
$gbu_exec = mysql_query($gbu_query);
while ($gbu_result = mysql_fetch_array($gbu_exec)) {
$gbu_naam = $gbu_result["naam"];
$gbu_url = $gbu_result["url"];
$gbu_status = $gbu_result["status"];
echo "<tr><td> <a href=\"".$gbu_url."\" title=\"".$gbu_naam."\" target=\"_blank\">".$gbu_naam."</a></td></tr>"; }
//tabel afsluiten en link naar plaats-pagina
echo "</table><br>";
}
std_footer();
?>
<?php include ("include/include.php"); std_header(); //categorieen selecteren $gbc_query = "SELECT * FROM akties_cat ORDER BY sort"; $gbc_id = $gbc_result["id"]; $gbc_naam = $gbc_result["naam"]; echo "<table width=450 style='border-style: solid; border-color: #CCCCCC; border-width: 1;' cellpadding=0 cellspacing=0 align=center><tr><td> <b>".$gbc_naam."</b></td></tr></table><br> <table width=450 style='border-style: solid; border-color: #CCCCCC; border-width: 1;' cellpadding=0 cellspacing=0 align=center>"; //bijbehorende links selecteren $gbu_query = "SELECT * FROM akties_url WHERE cat='$gbc_id' AND status != 'wachtrij' ORDER BY naam DESC"; $gbu_naam = $gbu_result["naam"]; $gbu_url = $gbu_result["url"]; $gbu_status = $gbu_result["status"]; echo "<tr><td> <a href=\"".$gbu_url."\" title=\"".$gbu_naam."\" target=\"_blank\">".$gbu_naam."</a></td></tr>"; } //tabel afsluiten en link naar plaats-pagina } std_footer(); ?>
Ik weet niet waarom hij een wit scherm geeft.
Er zit dus een fout in maar ik vindt deze niet.
Misschien dat iemand het weet?
Alvast bedankt!
|